[llvm-bugs] [Bug 38940] New: lld-link /pdbaltpath:%_PDB% doesn't expand %_PDB%

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 13 13:12:38 PDT 2018


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: unassignedbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180913/9cd570d0/attachment.html>


More information about the llvm-bugs mailing list