Skip to content

Commit

Permalink
Use c++20 to allow format string checking
Browse files Browse the repository at this point in the history
Bug: 305066880
Test: mma -j32
Flag: EXEMPT, build infrastructure change
Change-Id: Ic60b8a4959e013fd2455a4c85659d4d0f7052b2e
  • Loading branch information
myles-android committed Feb 15, 2024
1 parent 1f90242 commit dbd43e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ cc_defaults {
"-Werror=reorder-init-list",
],
c_std: "c99",
cpp_std: "c++17",
cpp_std: "c++20",
}
2 changes: 1 addition & 1 deletion system/test/tool/mockcify.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion tools/rootcanal/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dbd43e7

Please sign in to comment.