<html>
<head>
<base href="https://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 does not pass -Zc:threadSafeInit- to the fallback compiler"
href="https://llvm.org/bugs/show_bug.cgi?id=30948">30948</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-cl does not pass -Zc:threadSafeInit- to the fallback compiler
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</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>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>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dmajor@mozilla.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I used gflags to catch cl.exe in a debugger, and I didn't see
-Zc:threadSafeInit- in its command line.
$ cat foo.cpp
#if defined(__clang__)
#error Try again
#endif
$ clang-cl -c -fallback -Zc:threadSafeInit- foo.cpp
foo.cpp(2,2): error(clang): Try again
#error Try again
^
1 error generated.
clang-cl.exe: warning: falling back to C:\Program Files (x86)\Microsoft Visual
Studio 14.0\VC\bin\amd64\cl.exe [-Wfallback]
foo.cpp</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>