Rename PGO profile file name

PGO profile files are tied to their base revisions, and don't need
regeneration after cherry-picks.  With the current naming scheme using
the long version (e.g.  8.0.7.profdata), the profile file needs to be
renamed every time we bump up the patch level during a respin of the
toolchain.

Let's change profile-file names to svn revision with trailing alphabet
suffix stripped (e.g. for r1234c, use r1234.profdata) to avoid these
unnecessary renames.

Test: python build.py --check-pgo-profile fails with old profile file
      and passes with renamed profile.

Test: python toolchain/llvm/android/test_compiler.py --build-only
      --target aosp_marlin-eng --no-clean-built-target
      --generate-clang-profile --no-pgo ./

Change-Id: Ib72d7e5e9f040bc9e01d328fb024a258e95b12c3
2 files changed
tree: 8c41df630876db710b71b64ee91dc21f0d28f24c
  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 the --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]