aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2021-02-18 17:59:46 -0800
committerStephen Hines <srhines@google.com>2021-02-18 17:59:46 -0800
commite5c6a188b0bf9796e2630d42cf3b6b082c938acb (patch)
tree452f2adf2300bf56608968c7421573bb83a39bc4
parent5d2b08363b80f8ce3676eb3b6e6a9a766b24d91a (diff)
downloadllvm_android-llvm-r399163b.tar.gz
Fix path for PGO profdata file.llvm-r399163b
Test: ./build.py and check binaries for PGO use Change-Id: Ia88c1f84d523829f9969ffdee6cce7d791f6f974
-rw-r--r--paths.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/paths.py b/paths.py
index 7dc9e53..3d035c7 100644
--- a/paths.py
+++ b/paths.py
@@ -69,9 +69,8 @@ KYTHE_CXX_EXTRACTOR = (PREBUILTS_DIR / 'clang-tools' / hosts.build_host().os_tag
KYTHE_OUTPUT_DIR = OUT_DIR / 'kythe-files'
def pgo_profdata_filename() -> str:
- svn_revision = android_version.get_svn_revision()
- base_revision = svn_revision.rstrip(string.ascii_lowercase)
- return f'{base_revision}.profdata'
+ svn_revision = android_version.get_svn_revision_number()
+ return 'r%s.profdata' % svn_revision
def pgo_profdata_file(profdata_file) -> Optional[Path]:
profile = (PREBUILTS_DIR / 'clang' / 'host' / 'linux-x86' / 'profiles' /