commit | bc8b6286f48d3d4d0de2cf501f908afef7341ba2 | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Fri Dec 18 18:34:31 2020 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Dec 18 18:34:31 2020 +0000 |
tree | 3000a4dbb51d7f6fedb589125d7f3f1896c4b7aa | |
parent | 7f9616acc400d4e148b42e17a16a0a1042e92113 [diff] | |
parent | 7f71d017e77b2c31bfd7ad0685e97bfbac3d4771 [diff] |
Merge "Ensure that we use our toolchain's lipo, and not the system version"
For the latest version of this doc, please make sure to visit: Android Clang/LLVM Toolchain Readme Doc
You can also visit the Android Clang/LLVM Prebuilts Readme Doc for more information about our prebuilt toolchains (and what versions they are based upon).
$ mkdir llvm-toolchain && cd llvm-toolchain $ repo init -u https://android.googlesource.com/platform/manifest -b llvm-toolchain $ repo sync -c $ python toolchain/llvm_android/build.py
If building on Linux, pass --no-build windows
to build.py
to skip building Clang for Windows.
If you have an additional llvm tree built and present in your $PATH
, then build.py
might fail during the Windows build of libcxxabi with the error 'libstdc++ version must be at least 4.8.'
. The solution is to remove that path from your $PATH
before invoking build.py
.
To rebuild a particular toolchain, find the manifest file for that release:
$ $TOOLCHAIN_DIR/bin/clang -v Android (6317467 based on r365631c1) clang version 9.0.8...
The build number for that toolchain is 6317467
and the manifest is found in $TOOLCHAIN_DIR/manifest_6317467.xml
Rebuild the toolchain with that manifest:
$ mkdir llvm-toolchain && cd llvm-toolchain $ repo init -u https://android.googlesource.com/platform/manifest -b llvm-toolchain $ cp $TOOLCHAIN_DIR/manifest_6317467.xml .repo/manifests $ repo init -m manifest_6317467.xml $ repo sync -c # Optional: Apply any LLVM/Clang modifications to toolchain/llvm-project $ python toolchain/llvm_android/build.py
We have a public mailing list that you can subscribe to: android-llvm@googlegroups.com