commit | 629557027ef5ef35ac6b999857a4b48a25860a76 | [log] [tgz] |
---|---|---|
author | Pirama Arumuga Nainar <[email protected]> | Tue Aug 27 15:40:51 2019 -0700 |
committer | Pirama Arumuga Nainar <[email protected]> | Tue Aug 27 18:47:59 2019 -0700 |
tree | e7c49c610c1a7b7c2a8ebfd84bc8d251b4fd9080 | |
parent | 2adba7d927ccc919d5bca36ff6c997d490ea1f56 [diff] |
Use packaged toolchain in test_compiler. The packaging step customizes the toolchain, including installing compiler wrappers, and overwriting clang's stdatomic.h with that from bionic. Use the packaged toolchain so the test_compiler's test is closer to a real build. Also don't explicitly install compiler wrapper in test_compiler.py since all invocation options will now have the wrapper already installed. Test: test_compiler.py Change-Id: If4405f3df73276e2c53fffb0b9986ef47b6e7a2f
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
.
We have a public mailing list that you can subscribe to: [email protected]