Skip to content

Instantly share code, notes, and snippets.

@pperehozhih
Last active December 26, 2017 15:46
Show Gist options
  • Save pperehozhih/4ba739382a28e606f437da9e5b5f5d09 to your computer and use it in GitHub Desktop.
Save pperehozhih/4ba739382a28e606f437da9e5b5f5d09 to your computer and use it in GitHub Desktop.
Build android toolchain
#!/bin/sh
git clone http://llvm.org/git/llvm.git
cd llvm/tools
git clone http://llvm.org/git/clang.git
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 -DLLVM_TARGETS_TO_BUILD="ARM;AArch64" -DLLVM_DEFAULT_TARGET_TRIPLE="arm-linux-androideabi" -G "Ninja" ..
ninja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment