[lld] [lld][COFF] Add /linkreprofullpathrsp flag (PR #174971)
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 8 10:52:49 PST 2026
================
@@ -0,0 +1,43 @@
+# REQUIRES: x86
+
+# RUN: rm -rf %t.dir %t.obj
+# RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
+# RUN: yaml2obj %p/Inputs/empty.yaml -o %t.archive.obj
+# RUN: rm -f %t.archive.lib
+# RUN: llvm-ar rcs %t.archive.lib %t.archive.obj
+# RUN: llvm-pdbutil yaml2pdb %S/Inputs/pdb-type-server-simple-ts.yaml -pdb %t.pdb
+
+
+Test link.exe-style /linkreprofullpathrsp: flag.
+# RUN: mkdir -p %t.dir/build1
+# RUN: cd %t.dir/build1
+# RUN: lld-link /subsystem:console %t.obj %p/Inputs/std32.lib /defaultlib:%p/Inputs/library.lib \
+# RUN: /libpath:%p/Inputs /defaultlib:std64.lib ret42.lib /entry:main at 0 /linkreprofullpathrsp:%t.rsp \
+# RUN: %t.pdb /wholearchive:%t.archive.lib /out:%t.exe /timestamp:0
+# # RUN: FileCheck %s --check-prefix=RSP -DT=%t -DP=%p < %t.rsp
+
+# RUN: lld-link /subsystem:console @%t.rsp /out:%t2.exe /entry:main at 0 /timestamp:0
+# RUN: diff %t.exe %t2.exe
----------------
aganea wrote:
I think it would be better to use `cmp` here instead of `diff` to avoid the binary diff output to stdout. I missed this during the review. `diff --binary` would be fine but it seems not all Unix flavors support that option. I guess you can land this as a NFC commit if you wish.
https://github.com/llvm/llvm-project/pull/174971
More information about the llvm-commits
mailing list