aboutsummaryrefslogtreecommitdiff
path: root/pw_log_basic/Android.bp
diff options
context:
space:
mode:
authorWyatt Hepler <hepler@google.com>2023-10-06 07:47:59 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-06 07:47:59 +0000
commita9e391c891ce200347e5ef95694b44706e9b61d0 (patch)
treea882b16ebdb586c5a81039abdceb806feca32a6d /pw_log_basic/Android.bp
parent3863c372e6e9e86d25e661600df095a77eb900ab (diff)
downloadpigweed-a9e391c891ce200347e5ef95694b44706e9b61d0.tar.gz
Android.bp: Use C++20 everywhere
Some modules used C++20, others used the default. Specify C++20 everywhere to avoid mixing standards. Parts of Pigweed (pw_span in particular) behave differently depending on the current C++ standard, which can cause problems when compiling translation units with different standards. Specifying C++20 everywhere prevents Pigweed from relying on the default, which may change in the future. Also, switch from c++2a to c++20. Bug: b/303371098 Change-Id: I932a626848abcdf354267b24755557102622b2f9 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/174630 Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Reviewed-by: Carlos Chinchilla <cachinchilla@google.com> Commit-Queue: Victor Berchet <berchet@google.com> Reviewed-by: Victor Berchet <berchet@google.com>
Diffstat (limited to 'pw_log_basic/Android.bp')
-rw-r--r--pw_log_basic/Android.bp7
1 files changed, 4 insertions, 3 deletions
diff --git a/pw_log_basic/Android.bp b/pw_log_basic/Android.bp
index 69fb19f8c..fa9bd443d 100644
--- a/pw_log_basic/Android.bp
+++ b/pw_log_basic/Android.bp
@@ -18,6 +18,7 @@ package {
cc_library_headers {
name: "pw_log_basic_include_dirs",
+ cpp_std: "c++20",
export_include_dirs: [
"public",
"public_overrides",
@@ -27,8 +28,8 @@ cc_library_headers {
}
cc_defaults {
- name: "pw_log_basic_defaults",
- cpp_std: "c++2a",
+ name: "pw_log_basic_defaults",
+ cpp_std: "c++20",
header_libs: [
"pw_log_basic_include_dirs",
],
@@ -36,4 +37,4 @@ cc_defaults {
export_header_lib_headers: [
"pw_log_basic_include_dirs",
],
-} \ No newline at end of file
+}