llvm-project
llvm-project copied to clipboard
Normalise paths on insertion into thin archive
| 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 '/'
This behaviour has been fixed.