Last active
March 31, 2019 05:10
-
-
Save etaf/271e2c8ebb5196287b8938eff0d359ab to your computer and use it in GitHub Desktop.
clang_install.sh
This file contains 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
# Download: | |
git clone https://github.com/llvm/llvm-project.git | |
cd llvm-project/ | |
# Configure | |
mkdir build && cd build | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${HOME}/.local -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm | |
# Make and install | |
make -j$(nproc) | |
make install | |
# uninstall | |
xargs rm -rf < install_manifest.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment