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

Alexandre Ganea via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 8 15:59:48 PST 2020


No worries - yes please, delete the build folder and re-create it, you should be fine.

-----Message d'origine-----
De : Paul C. Anagnostopoulos <paul at windfall.com> 
Envoyé : December 8, 2020 6:55 PM
À : Alexandre Ganea <alexandre.ganea at ubisoft.com>
Cc : Adrian McCarthy <amccarth at google.com>; llvm-dev <llvm-dev at lists.llvm.org>
Objet : RE: [llvm-dev] Ninja hangs when I try to build

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