[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
----------------
aganea wrote:
Just a heads up, LLD has `/Brepro` for that purpose, to make outputs deterministic (both the EXE and the PDB). But `/timestamp:0` is fine here since it is a subset of `/Brepro`.
https://github.com/llvm/llvm-project/pull/174971
More information about the llvm-commits
mailing list