Skip to content

Instantly share code, notes, and snippets.

@chichunchen
Last active June 30, 2019 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chichunchen/1ea6a12485e1a7852a90bbb3b574c402 to your computer and use it in GitHub Desktop.
Save chichunchen/1ea6a12485e1a7852a90bbb3b574c402 to your computer and use it in GitHub Desktop.
llvm cmake script for building the learning env.
# clone llvm-project -> mkdir build -> cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_INSTALL_PREFIX=$HOME/llvm -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;lldb;lld;openmp;clang-tools-extra;compiler-rt" ../llvm/
ninja -j 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment