<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.exe does not reproduce semantic of cl.exe's /Fo switch correctly"
href="http://llvm.org/bugs/show_bug.cgi?id=21589">21589</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-cl.exe does not reproduce semantic of cl.exe's /Fo switch correctly
</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>frerich.raabe+llvmbug@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Overview
--------
The clang-cl.exe driver as shipped with clang version 3.6.0 (221592) does not
reproduce the semantic of the /Fo switch correctly.
How to Reproduce
----------------
1. Create a source file 'x.cpp' containing just
void f() {}
2. Compile the source file by running
clang-cl /c /Fo x.cpp
Actual Results
--------------
clang-cl.exe prints an error message saying
clang-cl.exe: error: argument to '/Fo' is missing (expected 1 value)
Expected Results
----------------
clang does not print any output. Instead, it compiles the given source file,
and writes an object file with the default name -- x.obj
Build Date & Platform
---------------------
clang version 3.6.0 (221592)
Target: i686-pc-windows-msvc
Thread model: posix
Additional Information
----------------------
Contrary to what the MSDN documentation and the "cl.exe /help" output says, the
/Fo switch (which can be used to define the name of the output file) does *not*
require an argument. If no argment is given, the default name will be used
(i.e. it appears to behave as if /Fo was not specified at all).
This differene in behaviour unfortunately breaks using clang-cl as a drop-in
replacement for cl for setups which rely on compiler invocations to work even
if no argument to /Fo is given.</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>