Hi, 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/ make 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/ Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130808/358550bc/attachment.html>
Le 8 août 2013 à 07:22, gamma_chen <gamma_chen at yahoo.com.tw> a écrit :> Hi, > > 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/ > make > > 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/ > > JonathanI'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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130808/4aff1014/attachment.html>
Jean, I never us "Unix Makefiles" of cmake and make on Mac. I will try this when I got my home Mac computer. Thank you. Jonathan ________________________________ 寄件者: Jean-Daniel Dupas <devlists at shadowlab.org> 收件者: gamma_chen <gamma_chen at yahoo.com.tw> 副本: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu> 寄件日期: 2013/8/8 (週四) 4:26 PM 主旨: Re: [LLVMdev] lld build Le 8 août 2013 à 07:22, gamma_chen <gamma_chen at yahoo.com.tw> a écrit : Hi,> > >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/>make > > >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/ > > > >JonathanI'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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130809/50cae7c2/attachment.html>