Requirements The repo tool: https://source.android.com/source/downloading.html#installing-repo Checkout LLVM # mkdir llvm # cd llvm # repo init -u https://github.com/markun/llvm-repo.git Building LLVM Just follow the instructions: https://llvm.org/docs/CMake.html