Skip to content

Instantly share code, notes, and snippets.

@morris821028
Created March 11, 2016 01:38
Show Gist options
  • Save morris821028/70f2319057075c7b2005 to your computer and use it in GitHub Desktop.
Save morris821028/70f2319057075c7b2005 to your computer and use it in GitHub Desktop.
Build LLVM
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