<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - [win] lld-link shouldn't depend on env vars to find libraries optionally"
href="https://llvm.org/bugs/show_bug.cgi?id=24616">bug 24616</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>FIXED
</td>
<td>---
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - [win] lld-link shouldn't depend on env vars to find libraries optionally"
href="https://llvm.org/bugs/show_bug.cgi?id=24616#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - [win] lld-link shouldn't depend on env vars to find libraries optionally"
href="https://llvm.org/bugs/show_bug.cgi?id=24616">bug 24616</a>
from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=24616#c3">comment #3</a>)
<span class="quote">> No it doesn't. But how can you find a correct search path if no path is
> given via the environment variable? What does clang-cl do?</span >
INCLUDE doesn't depend on the target architecture, so we're just getting lucky.
Nico, personally I feel like if the user has LIB set then we have to trust it.
It's what link.exe does. We can do whatever we want when LIB isn't set, though.
Clang currently tries to guess which version of VS you want and which Windows
SDK you're using if INCLUDE isn't set. The code and the guesses are pretty bad,
but we could make it better and share it with LLD.
Users have already hit issues with the Windows 10 SDK paths being stale, for
example:
<a href="http://lists.llvm.org/pipermail/llvm-dev/2015-August/089011.html">http://lists.llvm.org/pipermail/llvm-dev/2015-August/089011.html</a></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>