This makes LTO -save-temps usable when archive contains full path to file.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/test/ELF/lto/thinlto.ll | ||
---|---|---|
26 | Enhance the test to check one of the produced temporary files. ; RUN: rm -fr %t.dir ; RUN: mkdir -p %t.dir ; RUN: cp %t2.o %t.dir/t.o ; RUN: llvm-ar rcsT %t.dir/t.a %t.dir/t.o ; RUN: ld.lld -save-temps %t1.o %t.dir/t.a -o - > /dev/null ; RUN: ls '%t.dir/t.a(t.o at 0).0.preopt.bc' The last line makes it clear the indented filename. |
Comment Actions
For the title:
Fix archived bitcode files naming
Suggested: Support -save-temps for thin archives.
The thin archive is a GNU extension. Otherwise there is no POSIX requirement to support a full path for a member. So this is not a bug.
Comment Actions
Suggested: Support -save-temps for thin archives.
Windows libraries are not thin archives, but still contain full paths to member objects. Without this patch /lldsavetemps is almost unusable for thin LTO clang/LLVM builds on Windows.
Enhance the test to check one of the produced temporary files.
The last line makes it clear the indented filename.