Skip to content

Instantly share code, notes, and snippets.

@MatthiasJReisinger
Created October 7, 2017 08:53
Show Gist options
  • Save MatthiasJReisinger/ddb85e5e0c2728ee544360544921ae4e to your computer and use it in GitHub Desktop.
Save MatthiasJReisinger/ddb85e5e0c2728ee544360544921ae4e to your computer and use it in GitHub Desktop.
Fast LLVM Build
# 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