Difference between revisions of "User:Hef/ispc on rpi2"

From Pumping Station: One Wiki
Jump to: navigation, search
(clang)
(clang)
Line 27: Line 27:
 
ninja -j1
 
ninja -j1
 
</syntaxHighlight>
 
</syntaxHighlight>
 +
 +
Ninja will take many hours to complete.

Revision as of 00:27, 25 March 2015

setup

gcc 4.6 both won't compile latest llvm/clang and will generate an ICE on older versions of clang.

<syntaxHighlight lang=bash> sudo apt-get install cmake gcc-4.8 g++-4.8 </syntaxHighlight>

ninja

<syntaxHighlight lang=bash> git clone git://github.com/martine/ninja.git cd ninja git checkout release ./configure.py --bootstrap sudo cp ninja /usr/local/bin/ninja </syntaxHighlight>

clang

<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 ../llvm -G Ninja ninja -j1 </syntaxHighlight>

Ninja will take many hours to complete.