No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
== setup == | |||
gcc 4.6 both won't compile latest llvm/clang and will generate an ICE on older versions of clang. | gcc 4.6 both won't compile latest llvm/clang and will generate an ICE on older versions of clang. | ||
| Line 5: | Line 7: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
== ninja == | |||
<syntaxHighlight lang=bash> | <syntaxHighlight lang=bash> | ||
git clone git://github.com/martine/ninja.git | git clone git://github.com/martine/ninja.git | ||
| Line 13: | Line 16: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
== clang == | |||
<syntaxHighlight lang=bash> | <syntaxHighlight lang=bash> | ||
git clone http://llvm.org/git/llvm.git | |||
cd llvm/tools | |||
git clone http://llvm.org/git/clang.git | |||
cd ../../.. | |||
mkdir llvm-build | |||
cd llvm-build | |||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-4.8 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.8 | cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-4.8 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.8 | ||
ninja -j1 | |||
</syntaxHighlight> | </syntaxHighlight> | ||
Revision as of 23:17, 24 March 2015
setup
gcc 4.6 both won't compile latest llvm/clang and will generate an ICE on older versions of clang.
sudo apt-get install cmake gcc-4.8 g++-4.8
ninja
git clone git://github.com/martine/ninja.git
cd ninja
git checkout release
./configure.py --bootstrap
sudo cp ninja /usr/local/bin/ninja
clang
git clone http://llvm.org/git/llvm.git
cd llvm/tools
git clone http://llvm.org/git/clang.git
cd ../../..
mkdir llvm-build
cd llvm-build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-4.8 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.8
ninja -j1