Skip to content

Instantly share code, notes, and snippets.

@edcote
Last active November 9, 2018 16: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 edcote/06a80eea5c0245f678f21b0cf263468e to your computer and use it in GitHub Desktop.
Save edcote/06a80eea5c0245f678f21b0cf263468e to your computer and use it in GitHub Desktop.
LLVM development notes

Getting started

  • Clone repositories

https://llvm.org/docs/GettingStarted.html

% cd llvmrepos
% git clone https://git.llvm.org/git/llvm.git/
% git config branch.master.rebase true
% cd llvm/tools
% git clone https://git.llvm.org/git/clang.git/
% git config branch.master.rebase true
% cd llvm/projects
% git clone https://git.llvm.org/git/compiler-rt.git/
% git config branch.master.rebase true
  • Configure and build LLVM and clang
cd llvmrepos/llvm
mkdir objdir
cd objdir
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD=X86 ..
make -j 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment