Created
October 7, 2017 08:53
-
-
Save MatthiasJReisinger/ddb85e5e0c2728ee544360544921ae4e to your computer and use it in GitHub Desktop.
Fast LLVM Build
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
# Based on the following instructions: | |
# https://blogs.s-osg.org/an-introduction-to-accelerating-your-build-with-clang/ | |
# https://blogs.s-osg.org/a-conclusion-to-accelerating-your-build-with-clang/ | |
# General cmake instructions for LLVM: | |
# https://llvm.org/docs/CMake.html | |
cmake -G Ninja -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE="Debug" -DBUILD_SHARED_LIBS=ON -DLLVM_USE_LINKER=gold -DLLVM_OPTIMIZED_TABLEGEN=ON -DCMAKE_C_COMPILER="/usr/lib/ccache/clang" -DCMAKE_CXX_COMPILER="/usr/lib/ccache/clang++" -DCMAKE_ASM_COMPILER="/usr/bin/llvm-as-5.0" ~/respo/llvm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment