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

Commit dbd43e71 authored by Myles Watson's avatar Myles Watson
Browse files

Use c++20 to allow format string checking

Bug: 305066880
Test: mma -j32
Flag: EXEMPT, build infrastructure change
Change-Id: Ic60b8a4959e013fd2455a4c85659d4d0f7052b2e
parent 1f90242d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,5 +70,5 @@ cc_defaults {
        "-Werror=reorder-init-list",
    ],
    c_std: "c99",
    cpp_std: "c++17",
    cpp_std: "c++20",
}
+1 −1
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ sub compilation_screen {
    my $link="test/mock/$hdr";
    unlink "$INCDIR/$link";
    symlink "$OUTDIR/$hdr", "$INCDIR/$link";
    system("$CC -c -std=c++17 -o /dev/null -D" . join(" -D", @defs) . " -I" . join(" -I", @incs) . " $OUTDIR/$src");
    system("$CC -c -std=c++20 -o /dev/null -D" . join(" -D", @defs) . " -I" . join(" -I", @incs) . " $OUTDIR/$src");
    my $rc = $?;
         ($? == 0)
         ? printf(STDERR "SUCCESS Compiled unit \'$src\'\n")
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ cc_defaults {
        misc_undefined: ["bounds"],
    },
    c_std: "c99",
    cpp_std: "c++17",
    cpp_std: "c++20",
    cflags: [
        "-DGOOGLE_PROTOBUF_NO_RTTI",
        "-Wall",