Name | Version | Actual compiler | Version | CMake command |
---|---|---|---|---|
Visual Studio 2019 | 16.1.3 | cl.exe | 19.21.27702.2 | -G "Visual Studio 16 2019" -A x64 |
Clang (VS 2019) | 16.1.3 | clang-cl.exe | 8.0.0 | -G "Visual Studio 16 2019" -A x64 -T LLVM |
Note: supports only building outside LLVM. There is no support for x86 since there is no LLVM/Clang libraries for x86.
For Clang with VS:
Installer will automatically add LLVM toolset to all Visual Studio instances you have.
Needed to have Clang libraries and llvm-config.exe
to setup CMake.
Installs Clang/LLVM libraries to (for example) C:\Programs\LLVM_local2
.
Note:
You can also open build/LLVM.sln solution in Visual Studio and build everything from there instead of using cmake --build ...
command.
Assume:
C:\dev\cppinsights
andC:\Programs\LLVM_local2
(see step above)Instead of "Visual Studio 16 2019" generator with Clang, you can choose whatever works for you. See "Tested with (supported compilers)", CMake command column above.
Also, instead of building from command line, you can open build/cpp-insights.sln
and have fun with VS.