Skip to content

Instantly share code, notes, and snippets.

@etaf
Last active March 31, 2019 05:10
Show Gist options
  • Save etaf/271e2c8ebb5196287b8938eff0d359ab to your computer and use it in GitHub Desktop.
Save etaf/271e2c8ebb5196287b8938eff0d359ab to your computer and use it in GitHub Desktop.
clang_install.sh
# 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