<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/88006>88006</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Support `-x` for clang-cl
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
huangqinjin
</td>
</tr>
</table>
<pre>
`clang-cl -help` shows that `-x` is supported directly. It was added by #68921 to support CUDA/HIP.
But `clang-cl -x c++-module` report an error
```
unsupported option '-x c++-module'; did you mean '/TC' or '/TP'?
```
Support `-x` for clang-cl, so that we can use `/clang:` to compile C++20 modules (#64118).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8Us2OozwQfJrm0gqym_B34DDJCH1zG-nbfQBjO8Ejg1n_bCZvvwIym8OuVkKNGqqrqkstQjDXWesOyhOUr5lIcXS-G5OYrz_M_GHmbHDq3kHFpBXz9SAtHkZtF6gYhtHdAsZRRISKHT7XbyZgSMvifNQKlfFaRnvP8S3iTQQUSmmFwx2BiqppiWN0X3g8f399Aer_e3vPEdgrsJe9ntLG_9T_RAl0AjodJqeS1auu1xuHmFF77_xjvmKPZ2vT_LTmlmjcjED1n3RUQ3FCZRTeXcJJiw0H1H87A9Xo_Ff7vkH7v4rt9f_Hbr_zuTiPX5sAnTG4PcCbRilmTEGvWKB-A0Gx0q4hSTctxmo871aJ4W42IFCzpnnkvAFq8103U12h2qIVme54zalsiXOejd0g5YW3nERZ1MeCS9KXppK1KpUSknGVmY4YHdmRNbxivOQ5rwd2oUK0jJeXixzgyPQkjM2t_Tnlzl8zE0LSXdMwVmVWDNqG7ZyIZn3D7ScQrdflu3XmMKRrgCOzJsTwZIkmWt39M7AseduNMS5hDYZ6oP5q4piGXLoJqF-5Hq_D4t2HlhGo3xwEoH5z-CsAAP__dVbh2w">