Skip to content

Instantly share code, notes, and snippets.

@etaf
Last active January 9, 2024 18:56
Show Gist options
  • Save etaf/5f77158f1c45e90abfa3225f19f3c4bb to your computer and use it in GitHub Desktop.
Save etaf/5f77158f1c45e90abfa3225f19f3c4bb to your computer and use it in GitHub Desktop.
llvm build and install and uninstall
# Download:
git clone https://github.com/llvm/llvm-project.git
cd llvm-project/llvm
# Configure
mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release
# build:
cmake --build . -j $(nproc)
# install:
cmake -DCMAKE_INSTALL_PREFIX=${HOME}/.local/ -P cmake_install.cmake
# 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