[lld] [lld][COFF] Add /linkreprofullpathrsp flag (PR #165449)

Jacek Caban via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 30 08:56:36 PDT 2025


================
@@ -356,8 +357,17 @@ void LinkerDriver::enqueuePath(StringRef path, bool wholeArchive, bool lazy) {
         Err(ctx) << msg;
       else
         Err(ctx) << msg << "; did you mean '" << nearest << "'";
-    } else
+    } else {
+      // Write full path to library to repro file if /linkreprofullpathrsp
+      // is specified.
+      if (reproFile) {
+        *reproFile << '"';
+        if (defaultlib)
+          *reproFile << "/defaultlib:";
+        *reproFile << pathStr << "\"\n";
+      }
----------------
cjacek wrote:

As far as I understand, this will use the path as is, so `pathStr` may be relative here, which isn’t what we want.

https://github.com/llvm/llvm-project/pull/165449


More information about the llvm-commits mailing list