<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - clang-cl: /link option in @response file should only consume args until end of current line"
href="http://llvm.org/bugs/show_bug.cgi?id=17239">17239</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-cl: /link option in @response file should only consume args until end of current line
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hans@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Blocks</th>
<td>13707
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The '/link' command-line option takes the following arguments on the
command-line and passes them to the linker.
To be compatible with cl.exe, when /link occurs in a response file, it should
only capture arguments until the _end of the current line in that file_ -- not
until the end of the entire expanded command-line as clang-cl currently does.
This occurs in the wild in ninja files generated by cmake on windows. It will
generate a response file like
@foo.rsp:
foo.obj /link bar.lib baz.lib
And then invoke cl.exe:
cl.exe <somecompilerflags> @foo.rsp /link <morelinkerflags>
When run with clang-cl, this results in the linker complaining about the second
/link argument, since we've just passed along everything since we saw the first
/link in the response file.
I found this mentioned here:
<a href="http://msdn.microsoft.com/en-us/library/ms925492.aspx">http://msdn.microsoft.com/en-us/library/ms925492.aspx</a>
Filing this mostly to keep track of it, probably not very high priority right
now.</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>