Created
March 11, 2016 01:38
-
-
Save morris821028/70f2319057075c7b2005 to your computer and use it in GitHub Desktop.
Build LLVM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/LLVM && cd ~/LLVM | |
wget -O - http://llvm.org/releases/3.7.1/llvm-3.7.1.src.tar.xz | tar Jxf - | |
wget -O - http://llvm.org/releases/3.7.1/cfe-3.7.1.src.tar.xz | \ | |
tar Jxf - -C llvm-3.7.1.src/tools | |
cd /home/morris1028/LLVM/hw1 | |
mkdir build && cd build | |
cmake /home/morris1028/LLVM/llvm-3.7.1.src | |
make -j12 | |
sudo cmake -DCMAKE_INSTALL_PREFIX=`/home/morris1028/LLVM/hw1/build` -P cmake_install.cmake | |
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment