Add back missing use of profdata for new builds.

I didn't realize that this was also using an `rstrip()` pattern with the
numbering scheme that breaks use of profdata files. Switching to the new
method restores our optimized binaries.

Bug: https://issuetracker.google.com/159095144
Bug: https://issuetracker.google.com/167642019
Test: ./build.py
Change-Id: I3319655e24f6f14855b01a87579833d4298505aa
1 file changed
tree: 6756d4911b5a612159062cba22748395a2b8479f
  1. kernel-boot-tests/
  2. patches/
  3. test/
  4. .gitignore
  5. __init__.py
  6. AddressSanitizer.md
  7. android_version.py
  8. bisect_driver.py
  9. build.py
  10. builder_registry.py
  11. builders.py
  12. configs.py
  13. constants.py
  14. do_build.py
  15. do_test_compiler.py
  16. hosts.py
  17. mapfile.py
  18. merge_from_upstream.py
  19. MODULE_LICENSE_BSD_LIKE
  20. MODULE_LICENSE_MIT
  21. OWNERS
  22. paths.py
  23. PREUPLOAD.cfg
  24. py3_utils.py
  25. README.md
  26. source_manager.py
  27. test_compiler.py
  28. toolchains.py
  29. trim_patch_data.py
  30. update-binutils.py
  31. update-lldb-prebuilts.py
  32. update-prebuilts.py
  33. update_kernel_toolchain.py
  34. utils.py
  35. 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.

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.

More Information

We have a public mailing list that you can subscribe to: android-llvm@googlegroups.com