diff --git a/src/build/config/compiler/pgo/BUILD.gn b/src/build/config/compiler/pgo/BUILD.gn index 37251f8e9b..f3e1793a74 100644 --- a/src/build/config/compiler/pgo/BUILD.gn +++ b/src/build/config/compiler/pgo/BUILD.gn @@ -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 == "") { diff --git a/src/tools/update_pgo_profiles.py b/src/tools/update_pgo_profiles.py index c9f621a4cf..d1e873d788 100755 --- a/src/tools/update_pgo_profiles.py +++ b/src/tools/update_pgo_profiles.py @@ -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))