Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a823bee9 authored by Bart Van Assche's avatar Bart Van Assche
Browse files

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: default avatarBart Van Assche <bvanassche@google.com>
parent b3ff0cf8
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -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",
    ],