mkdir build (for building without polluting the source dir)
cd build
- If you are using Visual Studio 2017:
- cmake -DLLVM_ENABLE_PROJECTS=clang -G "Visual Studio 15 2017" -A x64 -Thost=x64 ..\llvm
+ If you are using Visual Studio 2019:
+ cmake -DLLVM_ENABLE_PROJECTS=clang -G "Visual Studio 16 2019" -A x64 -Thost=x64 ..\llvm -Thost=x64 is required, since the 32-bit linker will run out of memory.
To generate x86 binaries instead of x64, pass -A Win32.