https://bugs.llvm.org/show_bug.cgi?id=38940

            Bug ID: 38940
           Summary: lld-link /pdbaltpath:%_PDB% doesn't expand %_PDB%
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: COFF
          Assignee: unassignedb...@nondot.org
          Reporter: nicolaswe...@gmx.de
                CC: llvm-bugs@lists.llvm.org

/pdbaltpath:%_PDB% is mentioned in most places that mention /pdbaltpath:, but
lld-link does the wrong thing with it:

$ bin/llvm-readobj -coff-debug-directory foo.exe | grep PDBF
      PDBFileName: %_PDB%



(see e.g. https://stackoverflow.com/questions/7596628/strip-the-path-to-the-pdb
"For newer link.exe versions,...", issue 31371,  and the docs at
https://docs.microsoft.com/en-us/cpp/build/reference/pdbaltpath-use-alternate-pdb-path?view=vs-2017
. Probably don't need to support full env var feature for cross builds if
nothing else (but might want to warn if seeing %FOO% where FOO isn't
whitelisted), but _PDB and _EXT might be nice.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to