llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Normalise paths on insertion into thin archive

Open jh7370 opened this issue 8 years ago • 1 comments

Bugzilla Link 39023
Resolution FIXED
Resolved on Sep 23, 2019 08:51
Version trunk
OS Windows NT
CC @gbreynoo
Fixed by commit(s) 362484

Extended Description

Currently, for thin archives, llvm-ar simply takes the path specified on the command-line, and adds the file with the name matching the path, with no normalisation or anything. GNU ar normalises the file path added. Normalising the path would make the output from 't' simpler, and would also shorten the length of any strings in the archive's filename table:

ar rcT test1.a ./dir/../test.o ar t test1.a test.o

llvm-ar rc test2.a ./dir/../test.o llvm-ar t test2.a /./dir/../test.o # see bug 39020 regarding the leading '/'

jh7370 avatar Sep 20 '18 16:09 jh7370

This behaviour has been fixed.

gbreynoo avatar Sep 23 '19 15:09 gbreynoo