Skip to content

Instantly share code, notes, and snippets.

@pperehozhih
Last active December 26, 2017 15:06
Show Gist options
  • Save pperehozhih/f0efa6c36523e082d16f176e6c677121 to your computer and use it in GitHub Desktop.
Save pperehozhih/f0efa6c36523e082d16f176e6c677121 to your computer and use it in GitHub Desktop.
build_clang.sh
#!/bin/sh
git clone http://llvm.org/git/llvm.git
cd llvm/tools
git clone http://llvm.org/git/clang.git
cd clang/tools
git clone http://llvm.org/git/clang-tools-extra.git extra
cd ../../..
cd projects
git clone http://llvm.org/git/compiler-rt.git
cd ..
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_INSTALL_PREFIX=$HOME/local -G "Ninja" ..
ninja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment