<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63482>63482</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Specifying MSVC toolchain version when using regular driver (not 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>
kamrann
</td>
</tr>
</table>
<pre>
I can see that `clang-cl` provides `/vstoolsdir` and `/vctoolsversion` arguments, but there appears to be no equivalent way to set via command line a specific MSVC toolchain when building for Windows with `clang++`. It can be specified through the environment variable `VCToolsInstallDir`, or otherwise will automatically default to the latest version found.
I suppose this may be intentional, but am unsure. I was under the impression that I should be able to achieve with `clang++` anything I can do with `clang-cl`?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0Uk2PnDAM_TXhYu0IkhnKHDjsh0aaQ09bbc-GGEgbEpo4oPn3VdidrVqpEgLJNu_5PT-M0YyOqBWnJ3F6KTDx5EP7E-eAzhWd17f2Cj06iETAEzKIuuwtuvGht6IuYQl-NZpirgt5WSN7b6M2ITfR6Xu93-srhWi823thTDM5jkI-Q5cYeKJAgMtCGCKwh47AeaBfyaxoyTFseMv1SAyrQej9PGcGaxwBQlyoN4Pp4evr2zNkun5C42CbyEGXjNXGjTD4AN-N036LsBmePvUI-ZSfujzAlXfJHd0xSQNPwadxylsCudUE7_L2sGIw2FnKOG_P37LIq4uM1r7sHmR1PoDP6jYTCTZjLWBiPyObHq29gaYBk-WsLcNbZIoMH17B4JPTB1G-iPLx_X2FmJbFx3wRE2HGW97VOCbHxju0d0txhuRiCnSAK2wYITlNYScx8xIo7gT7Wa8QJ5-szki7HvaA_WRopf_4BOhuPGVP3xOi_d-D7wER6lLoVumzOmNBbVU3X07HpjmpYmoHlGcph6rCrjw1ZxpU2VcDNlXfqQbLU2FaWUpV1lJVZ3Ws1OEsK9XVmkpFqj4elTiWNKOxB2vX-eDDWJgYE7W1OjaysNiRjXu2pXS0wd4UUuaohzb_89ClMYpjaU3k-AeFDVtqX_fr37LEfzJ1v82erRTzRKAxWQygg1kpgJCN8wyfTshzkYJtJ-YlCvUo5EXIy2h4St2h97OQl0z-8XlYgv9BPQt52VeOQl52Sb8DAAD__6_JPeM">