<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 does not work with VS integration if vcpkg is installed."
href="https://bugs.llvm.org/show_bug.cgi?id=38985">38985</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld-link does not work with VS integration if vcpkg is installed.
</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>Windows NT
</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>zturner@google.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zturner@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>If you install vcpkg from here: <a href="https://github.com/Microsoft/vcpkg">https://github.com/Microsoft/vcpkg</a>
And run `vcpkg integrate install` from a command prompt, then the LLVM VS
integration stops working with this error message:
C:\src\vcpkg\installed\x64...\lib\*.lib: invalid argument error.
The error seems to be coming from this file:
c:\src\vcpkg\scripts\buildsystems\msbuild\vcpkg.targets
<AdditionalDependencies Condition="'$(VcpkgNormalizedConfiguration)' == 'Debug'
and '$(VcpkgAutoLink)' !=
'false'">%(AdditionalDependencies);$(VcpkgRoot)debug\lib\*.lib</AdditionalDependencies>
If you set the MSBuild project output verbosity to diagnostic level and get the
lld-link.exe command line it's running and then paste that into a command
prompt, it appears to work, so this appears to be an MSBuild issue. But
perhaps there's a workaround we can submit in lld, or alternatively maybe we
can fix MSBuild and/or vcpkg.
This was reported by user henrik@ on IRC.</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>