<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - lld-link /pdbaltpath:%_PDB% doesn't expand %_PDB%"
   href="https://bugs.llvm.org/show_bug.cgi?id=38940">38940</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lld-link /pdbaltpath:%_PDB% doesn't expand %_PDB%
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>COFF
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>/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. <a href="https://stackoverflow.com/questions/7596628/strip-the-path-to-the-pdb">https://stackoverflow.com/questions/7596628/strip-the-path-to-the-pdb</a>
"For newer link.exe versions,...", issue 31371,  and the docs at
<a href="https://docs.microsoft.com/en-us/cpp/build/reference/pdbaltpath-use-alternate-pdb-path?view=vs-2017">https://docs.microsoft.com/en-us/cpp/build/reference/pdbaltpath-use-alternate-pdb-path?view=vs-2017</a>
. 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.)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>