<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 - VisualStudio projects always out of date using clang-cl toolset integration"
href="https://bugs.llvm.org/show_bug.cgi?id=37187">37187</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>VisualStudio projects always out of date using clang-cl toolset integration
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bherrera@reification.io
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Issue observed using LLVM 6.0 x64 toolchain
(<llvm_insall_dir>/msbuild-bin/cl.exe) with Visual Studio 14 (and Visual Studio
15 using a manual toolset integration),
MSVS default compiler options include flag for specifying location of .pdb file
for libraries. clang-cl silently ignores this switch and embeds intermediate
debug data in obj files instead of producing a single separate pdb for the
entire library. (not an issue - debugging works fine)
Projects always appear out of date due to msbuild expecting a pdb file and not
finding one.
This can be remedied by modifying the toolset-vs20XX.props file used for
MSVS/MSBuild integration:
Under the compile options add a tag to clear the pdb filename option
<ItemDefinitionGroup>
<ClCompile>
...
<!-- clang-cl embeds debug data in obj files. does not generate pdb per
lib. if option not cleared projects will always appear out of date to MSVS. -->
<ProgramDataBaseFileName/>
</ClCompile>
</ItemDefinitionGroup></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>