Skip to content

Instantly share code, notes, and snippets.

@quentin
Last active November 16, 2019 12:27
Show Gist options
  • Save quentin/44200ca1cda5fc7376d380767249a50c to your computer and use it in GitHub Desktop.
Save quentin/44200ca1cda5fc7376d380767249a50c to your computer and use it in GitHub Desktop.
build llvm
git clone https://github.com/llvm/llvm-project.git
# git checkout <some-version>
cd llvm-project
mkdir build
cd build
cmake \
-G "Unix Makefiles" \
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" \
-DCMAKE_BUILD_TYPE="Release" \
#-DCMAKE_INSTALL_PREFIX=<TBD> \
-DLLVM_TARGETS_TO_BUILD="X86" \
-DLLVM_BUILD_DOCS=ON \
-DLLVM_ENABLE_DOXYGEN=ON \
../llvm
make -j 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment