Skip to content

Instantly share code, notes, and snippets.

@edcote edcote/llvm.md
Last active Nov 9, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.