[enhancement] Support for Developer Command Prompt / vcvarsall possible?
HealsCodes opened this issue · comments
Hi,
would it be possible to add the required scripts to make the LLVM v14* toolchains available in the Developer Command Prompt?
The toolchain files you provide work amazingly well with MSBuild targets, but it would be awesome if we could also use them from within a terminal so they get picked up by CMake / Ninja as is currently possible by using helpers like vcvarsall.bat
for ninja, you will need to override CC
and CXX
with path to clang-cl.exe
, e.g.
set PATH=D:/Dev/LLVM/bin;%PATH%
set CC=D:/Dev/LLVM/bin/clang-cl.exe
set CXX=D:/Dev/LLVM/bin/clang-cl.exe
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release
for ninja, you will need to override
CC
andCXX
with path toclang-cl.exe
, e.g.set PATH=D:/Dev/LLVM/bin;%PATH% set CC=D:/Dev/LLVM/bin/clang-cl.exe set CXX=D:/Dev/LLVM/bin/clang-cl.exe cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release
Oh wow.. I feel a bit dumb now for not thinking about pointing CMake / Ninja at clang-cl.exe.
I was used to having to resort to vcvarsall.bat in a terminal in order to get CMake to pick up the regular cl.exe at all but this just works out of the box by telling CMake where to look for clang-cl - thanks a lot!