Created
August 30, 2016 08:38
-
-
Save EricWF/55b05b5b4f11ac80a059de457441dabf to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env bash | |
| export SRC_ROOT= path/to/llvm # SET ME | |
| export BUILD = TODO # SET ME | |
| # SET ME. /usr/local will safely "replace" the system installation. Prefixes like /opt/llvm-tot are safer to use | |
| export INSTALL_PREFIX= /usr/local | |
| # Checkout the LLVM tree correctly | |
| git clone --depth=1 http://llvm.org/git/llvm.git $SRC_ROOT | |
| git clone --depth=1 http://llvm.org/git/clang.git $SRC_ROOT/tools/clang | |
| git clone --depth=1 http://llvm.org/git/compiler-rt.git $SRC_ROOT/projects/compiler-rt | |
| git clone --depth=1 http://llvm.org/git/libcxx.git $SRC_ROOT/projects/libcxx | |
| git clone --depth=1 http://llvm.org/git/libcxxabi.git $SRC_ROOT/projects/libcxxabi | |
| mkdir $BUILD | |
| cd $BUILD | |
| cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX -DCMAKE_BUILD_TYPE=RELEASE $SRC_ROOT | |
| # make -jN | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment