An Android Repo manifest for the git repositories required to build Clang from source.
Instructions for installing repo: https://source.android.com/setup/downloading#installing-repo
Inside an empty directory:
repo init -u https://github.com/advisoft/clang-manifest
, then to download the code: repo sync
repo sync
mkdir bld
cd bld
cmake -G "Ninja" ../llvm -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=~/clang-master -DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF -DLLVM_ENABLE_ASSERTIONS:BOOL=OFF
ninja
ninja install
Now the usable binaries will be located in: ~/clang-master/bin