tools: Remove Android arm64 custom profile path

This commit is contained in:
klzgrad
2025-09-14 23:22:32 +08:00
parent db188110be
commit 9e889e7110
2 changed files with 3 additions and 7 deletions

View File

@@ -81,7 +81,7 @@ config("pgo_optimization_flags") {
if (is_desktop_android && current_cpu == "x64") {
_pgo_target = "android-desktop-x64"
} else if (current_cpu == "arm64") {
_pgo_target = "android-arm64"
_pgo_target = "android-desktop-arm64"
} else {
_pgo_target = "android-arm32"
}
@@ -115,6 +115,8 @@ config("pgo_optimization_flags") {
inputs = [ "//chrome/build/android-arm32.pgo.txt" ]
} else if (_pgo_target == "android-desktop-x64") {
inputs = [ "//chrome/build/android-desktop-x64.pgo.txt" ]
} else if (_pgo_target == "android-desktop-arm64") {
inputs = [ "//chrome/build/android-desktop-arm64.pgo.txt" ]
}
if (_pgo_target != "" && pgo_data_path == "") {

View File

@@ -117,12 +117,6 @@ def _get_profile_path(args):
"""
if args.override_filename:
profile_path = os.path.join(_PGO_PROFILE_DIR, args.override_filename)
elif args.target == 'android-arm64':
# By default on android for arm64 we use the PGO profile that is generated
# at the same commit as the orderfile. See https://crbug.com/372686816 for
# more context on why this is necessary.
profile_path = os.path.join(_ANDROID_ARM64_PROFILE_DIR,
'pgo_profile.arm64.profdata')
else:
profile_path = os.path.join(_PGO_PROFILE_DIR,
_read_profile_name(args.target))