Last active
November 16, 2019 12:27
-
-
Save quentin/44200ca1cda5fc7376d380767249a50c to your computer and use it in GitHub Desktop.
build llvm
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
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