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

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 3 08:15:07 PST 2025


================
@@ -514,7 +524,7 @@ void LinkerDriver::parseDirectives(InputFile *file) {
       break;
     case OPT_defaultlib:
       if (std::optional<StringRef> path = findLibIfNew(arg->getValue()))
-        enqueuePath(*path, false, false);
+        enqueuePath(*path, false, false, nullptr);
----------------
aganea wrote:

This is added from a `.drectve` section which lives in a OBJ. The other handling of `/DEFAULTLIB` is from the command-line. Libs shouldn't be added twice since we do `if (findLibIfNew(info))` before enqueuing it. This my suggestion about moving `reproFile` in `class LinkerDriver`.

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


More information about the llvm-commits mailing list