summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2025-02-12 06:43:27 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-02-12 06:43:27 -0800
commitcfb576268173f49f711b0bedab05fe879c0a1621 (patch)
treeecc6b98d266a8acab38234b91750a9b7a68c158a
parentf572de9843a1c6510579d95d0812624d3feb04f3 (diff)
Reland "Bump the global default C standard to gnu23."
This reverts commit f572de9843a1c6510579d95d0812624d3feb04f3. Change-Id: I1926ee7fe96983d8902a3d9e3d7598f96c22bf07
-rw-r--r--cc/cc_test.go2
-rw-r--r--cc/config/global.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cc/cc_test.go b/cc/cc_test.go
index 98af7b655..2be4e48a5 100644
--- a/cc/cc_test.go
+++ b/cc/cc_test.go
@@ -2689,7 +2689,7 @@ func TestIncludeDirectoryOrdering(t *testing.T) {
cppOnly := []string{"-fPIC", "${config.CommonGlobalCppflags}", "${config.DeviceGlobalCppflags}", "${config.ArmCppflags}"}
cflags := []string{"-Werror", "-std=candcpp"}
- cstd := []string{"-std=gnu17", "-std=conly"}
+ cstd := []string{"-std=gnu23", "-std=conly"}
cppstd := []string{"-std=gnu++20", "-std=cpp", "-fno-rtti"}
lastNDKFlags := []string{
diff --git a/cc/config/global.go b/cc/config/global.go
index b19682d2a..ddb4d8527 100644
--- a/cc/config/global.go
+++ b/cc/config/global.go
@@ -380,7 +380,7 @@ var (
"-w",
}
- CStdVersion = "gnu17"
+ CStdVersion = "gnu23"
CppStdVersion = "gnu++20"
ExperimentalCStdVersion = "gnu2x"
ExperimentalCppStdVersion = "gnu++2b"