[PATCH] D85998: Add clang-cl "vctoolsdir" option to specify the location of the msvc toolchain

Alexandre Ganea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 21 12:14:40 PDT 2020


aganea added a comment.

Could you please explain a little bit more what motivated this change? You can achieve almost the same with `env VCToolsInstallDir=F:\Your_Path\ clang-cl ...`. You would also want to pass `-fmsc-version=...` to avoid extracting the version from `cl.exe`. If you're seeing many file and registry accesses, then `clang-cl` probably runs without a call to `vcvarsall.bat` before?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85998/new/

https://reviews.llvm.org/D85998



More information about the cfe-commits mailing list