CMake Loop while building LLVM release build.

Hello,

I build my release build with following cmake command on Ubuntu Linux:

cmake …/llvm_git/llvm -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=‘X86’ -DLLVM_OPTIMIZED_TABLEGEN=1 -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_PROJECTS=‘clang’ -DLLVM_USE_LINKER=gold -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_ENABLE_ASSERTIONS=On

Today after git pull

my ninja command keeps re-running cmake.

Anyone elase facing same issue?
Any hint on what is going wrong?

Thanks,
Vivek

Vivek,

I use the following on Xubuntu 19.04 without problems, noting there are a number of packages that are useful to install.

cmake -G Ninja -DLLVM_ENABLE_PROJECTS=“clang” -DLLVM_USE_LINKER=lld -DCMAKE_BUILD_TYPE=“Release” -DLLVM_ENABLE_ASSERTIONS=On …/llvm

Be sure to delete (rm -rf) your build directory and start new when you have to rerun cmake.

I also install clang and lld from the distribution and use it for compiling and linking.

Regards, Neil Nelson