ollvm project base on llvm-android of google
Warning
This project does NOT contain all the original files.
Considering that the original project is too large, it only contains the code that needs to be modified or added.
See here
-
Using WSL(Ubuntu22+) in Windows11 system
-
Install require packages
apt install repo make yacc cmake bison python-is-python3 -y
-
Init the llvm repo
mkdir llvm-toolchain && cd llvm-toolchain repo init -u https://android.googlesource.com/platform/manifest -b llvm-toolchain repo sync -c
-
Modify the llvm source code. For example, add obfuscation
-
Build the llvm
# Full build # python toolchain/llvm_android/build.py --skip-tests # Build for windows only python toolchain/llvm_android/build.py --skip-tests --no-build linux # Build for linux only # python toolchain/llvm_android/build.py --skip-tests --no-build windows
If you want to build the NDK specified LLVM version
See instructions-to-rebuild-a-particular-toolchain-release