lld build


Currently, I can build lld/llvm on Fedora 17 but fail to build it on iMac. The commands I use as follows. Anyone can help me? Or is there the lld mail list I can post the question?

Linux/Fedora can be built by the following command
cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_FLAGS=-std=c++11 -DCMAKE_BUILD_TYPE=Debug -G “Unix Makefiles” …/src/

iMac cannot be built by the following command (fail on Xcode compile)
cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_FLAGS=-std=c++0x -DCMAKE_BUILD_TYPE=Debug -G “Xcode” …/src/


I’m not sure the Xcode generated project works to build LLVM / LLD.

But what prevent you to build it using Makefile (or even better, using Ninja) on Mac too ?

– Jean-Daniel


I never us “Unix Makefiles” of cmake and make on Mac. I will try this when I got my home Mac computer.

Thank you.