summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yi Kong <yikong@google.com> 2021-12-25 07:31:15 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-12-25 07:31:15 +0000
commit39a1fcbc1e9fadcb1768c0037b8556c3703ee5cc (patch)
tree182a8f80fead8f4fc36510650ca10d913e54151a
parentc5da00e08e24c03e5d2a5953db28af6552cec22c (diff)
parent7cd72c55e68518605cddcc53c6ce1fb9e0ce1a96 (diff)
Merge "Move pgo rules to afdo"
-rw-r--r--libs/binder/Android.bp5
-rw-r--r--libs/gui/Android.bp10
-rw-r--r--libs/ui/Android.bp5
-rw-r--r--services/sensorservice/Android.bp5
4 files changed, 6 insertions, 19 deletions
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp
index d8101fad4c..f60b32e3ba 100644
--- a/libs/binder/Android.bp
+++ b/libs/binder/Android.bp
@@ -225,10 +225,7 @@ cc_library {
"portability*",
],
- pgo: {
- sampling: true,
- profile_file: "libbinder/libbinder.profdata",
- },
+ afdo: true,
}
cc_defaults {
diff --git a/libs/gui/Android.bp b/libs/gui/Android.bp
index 319003800c..fa853cb106 100644
--- a/libs/gui/Android.bp
+++ b/libs/gui/Android.bp
@@ -78,11 +78,10 @@ cc_library_static {
],
aidl: {
- export_aidl_headers: true
- }
+ export_aidl_headers: true,
+ },
}
-
cc_library_shared {
name: "libgui",
vendor_available: true,
@@ -192,10 +191,7 @@ cc_library_shared {
"libpdx_headers",
],
- pgo: {
- sampling: true,
- profile_file: "libgui/libgui.profdata",
- },
+ afdo: true,
lto: {
thin: true,
diff --git a/libs/ui/Android.bp b/libs/ui/Android.bp
index d4d0ee4f35..506e308370 100644
--- a/libs/ui/Android.bp
+++ b/libs/ui/Android.bp
@@ -226,10 +226,7 @@ cc_library_shared {
],
min_sdk_version: "29",
- pgo: {
- sampling: true,
- profile_file: "libui/libui.profdata",
- },
+ afdo: true,
}
cc_library_headers {
diff --git a/services/sensorservice/Android.bp b/services/sensorservice/Android.bp
index b596708a72..e6b118bd89 100644
--- a/services/sensorservice/Android.bp
+++ b/services/sensorservice/Android.bp
@@ -79,10 +79,7 @@ cc_library_shared {
"libpermission",
],
- pgo: {
- sampling: true,
- profile_file: "sensorservice/libsensorservice.profdata",
- },
+ afdo: true,
}
cc_binary {