Skip to content

Instantly share code, notes, and snippets.

@cwoffenden
Created April 25, 2022 15:26
Show Gist options
  • Save cwoffenden/f845fa519cc4383bddb7548af269bcb5 to your computer and use it in GitHub Desktop.
Save cwoffenden/f845fa519cc4383bddb7548af269bcb5 to your computer and use it in GitHub Desktop.
# Most options are straightforward, the oddity being LLVM_ENABLE_DUMP to both boostrap and stage2 compilers
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_DUMP=On -DCLANG_ENABLE_BOOTSTRAP=On -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;lld;lldb' -DBOOTSTRAP_CMAKE_BUILD_TYPE=Release -DBOOTSTRAP_LLVM_ENABLE_DUMP=On -DBOOTSTRAP_LLVM_INCLUDE_EXAMPLES=Off -DBOOTSTRAP_LLVM_INCLUDE_TESTS=Off ../LLVM/llvm
ninja stage2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment