As seen in https://github.com/llvm/llvm-project/issues/55023 when a thin archive is updated when not in the CWD replacement does not work as expected. This change fixes the relative file path comparison so the correct files are updated.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/tools/llvm-ar/thin-archive-relative-path.test | ||
---|---|---|
10 | If I do llvm-ar cr --thin foo/lib.a foo/elf.o foo/elf.o, what's the expected behavior? |
llvm/test/tools/llvm-ar/thin-archive-relative-path.test | ||
---|---|---|
10 | We follow GNU ar, two copies of foo/elf.o are added, replacing an existing member if it is already in the archive. |
If I do llvm-ar cr --thin foo/lib.a foo/elf.o foo/elf.o, what's the expected behavior?