Add -fsplit-lto-unit flag

The new LLVM update requires '-fsplit-lto-unit' to build ThinLTO. Add the flag unconditionally in test_compiler as a temporary workaround.

To be reverted after the cflag is properly set in soong.

Test: TreeHugger
Change-Id: I5b4dd4a7486c8219473d24a4b92447fb8994db75
1 file changed
tree: 438e402dbd385e2b6a48224c20fac483315617e4
  1. kernel-boot-tests/
  2. .gitignore
  3. __init__.py
  4. AddressSanitizer.md
  5. android_version.py
  6. bisect_driver.py
  7. build.py
  8. compiler_wrapper.py
  9. mapfile.py
  10. merge_from_upstream.py
  11. MODULE_LICENSE_BSD_LIKE
  12. MODULE_LICENSE_MIT
  13. OWNERS
  14. PREUPLOAD.cfg
  15. README.md
  16. test_compiler.py
  17. update-lldb-prebuilts.py
  18. update-prebuilts.py
  19. utils.py
  20. version.py
README.md

Android Clang/LLVM Toolchain

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).

Build Instructions

$ 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.

More Information

We have a public mailing list that you can subscribe to: [email protected]