libprocessgroup: Switch from gnu++-17 to gnu++-20
This change enables headers like <span>. Inside the <span> header file file the following guard makes its functionality unavailable when building with std=gnu++-17: #if _LIBCPP_STD_VER > 17 [ ... ] #endif Bug: 213617178 Change-Id: I5c40708ea196ab112990b5ca6fae9370b75f8752 Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
parent
b3ff0cf8c8
commit
a823bee9d3
1 changed files with 13 additions and 11 deletions
|
@ -2,6 +2,17 @@ package {
|
|||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
cc_defaults {
|
||||
name: "libprocessgroup_defaults",
|
||||
cpp_std: "gnu++20",
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wexit-time-destructors",
|
||||
"-Wno-unused-parameter",
|
||||
],
|
||||
}
|
||||
|
||||
cc_library_headers {
|
||||
name: "libprocessgroup_headers",
|
||||
vendor_available: true,
|
||||
|
@ -62,11 +73,7 @@ cc_library {
|
|||
export_header_lib_headers: [
|
||||
"libprocessgroup_headers",
|
||||
],
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wexit-time-destructors",
|
||||
],
|
||||
defaults: ["libprocessgroup_defaults"],
|
||||
apex_available: [
|
||||
"//apex_available:platform",
|
||||
"//apex_available:anyapex",
|
||||
|
@ -77,12 +84,7 @@ cc_library {
|
|||
cc_test {
|
||||
name: "task_profiles_test",
|
||||
host_supported: true,
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wexit-time-destructors",
|
||||
"-Wno-unused-parameter",
|
||||
],
|
||||
defaults: ["libprocessgroup_defaults"],
|
||||
srcs: [
|
||||
"task_profiles_test.cpp",
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue