[llvm-dev] Ninja hangs when I try to build

Paul C. Anagnostopoulos via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 8 15:55:20 PST 2020


I currently build with Ninja, having run cmake as follows:

cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_SPHINX=ON -DSPHINX_WARNINGS_AS_ERRORS:BOOL=OFF -DLLVM_BUILD_DOCS:BOOL=ON -S c:\llvm\llvm-project\llvm

I just added -Thost=x64 to that command and got this:

CMake Error: Error: generator toolset: host=x64
Does not match the toolset used previously:
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

Shall I just go ahead and follow those instructions?

Forgive my lack of knowledge; this is all new to me.


At 12/8/2020 06:36 PM, Alexandre Ganea wrote:

>Another other option is to create a secondary build folder and use ninja for building, and VS for editing & debugging. This is the best in terms of iteration times I would say.
>To use MSVC & Ninja you would do:
> 
>> mkdir buildninja && cd buildninja
>> cmake -G Ninja ../llvm -DCMAKE_BUILD_TYPE=Debug -DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM_ENABLE_PROJECTS="clang;lld;llvm"  -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_LIBXML2=OFF
>> ninja check-all



More information about the llvm-dev mailing list