Skip to content

Instantly share code, notes, and snippets.

@nikic

nikic/cmake.sh Secret

Created October 25, 2023 17:13
Show Gist options
  • Save nikic/1bf97b5b6aade298b87f41cd13bf37d5 to your computer and use it in GitHub Desktop.
Save nikic/1bf97b5b6aade298b87f41cd13bf37d5 to your computer and use it in GitHub Desktop.
cmake -GNinja -H./llvm-project/llvm -B./llvm-project-build-stage2 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=$PWD/llvm-project-build-stage1/bin/clang \
-DCMAKE_CXX_COMPILER=$PWD/llvm-project-build-stage1/bin/clang++ \
-DLLVM_ENABLE_PROJECTS="clang" \
-DLLVM_TARGETS_TO_BUILD="X86" \
-DLLVM_BUILD_TOOLS=false \
-DLLVM_INCLUDE_TESTS=false \
-DLLVM_INCLUDE_BENCHMARKS=false \
-DLLVM_APPEND_VC_REV=false \
-DLLVM_USE_LINKER=gold \
-DLLVM_BINUTILS_INCDIR=/usr/include \
-DCLANG_ENABLE_ARCMT=false \
-DCLANG_ENABLE_STATIC_ANALYZER=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment