<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 - clang-cl: /clr is not supported, and not forwarded with /fallback"
href="https://bugs.llvm.org/show_bug.cgi?id=38993">38993</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-cl: /clr is not supported, and not forwarded with /fallback
</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>enhancement
</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>kpreisert@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I have some source files in my project using C++/CX, so they are compiled with
the cl.exe flag "/clr". Clang does not support this flag. I then read about the
/fallback option for clang-cl and tried it, expecting that all the flags are
passed to the MSVC cl.exe. However, /clr is not passed, so the fallback cl.exe
complains "fatal error C1190: managed targeted code requires a '/clr' option"
Using Process Monitor, I looked into the cl.exe invocation that clang-cl.exe
makes, and found the following differences in passed options (although I'm not
sure which of these are actually unproblematic because they match the default
options):
- The original clang-cl invocation had /showIncludes /GR /Gy /J /MD /nologo /W3
/TP /clr /Gm- /Zi /GF /Od /c
- The fallback cl invocation has /nologo /c /W0 /Od /GF /Gy /Z7 /MD /Tp</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>