summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-03 21:35:11 +0800
committerruki <[email protected]>2022-09-03 21:35:11 +0800
commit195c3d29e6ea0145c920393cbb0cf1598c1e80f0 (patch)
tree7c2164b1a3a8cb2582d036ed014f038ab12faec2
parente59566a7d6f7ce12b1f132b335a8788b8050e8ae (diff)
improve std c
-rw-r--r--xmake/modules/core/tools/gcc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 7dfaab07f..937348037 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -187,8 +187,8 @@ function nf_language(self, stdname)
, gnu11 = "-std=gnu11"
, c17 = "-std=c17"
, gnu17 = "-std=gnu17"
- , clatest = {"-std=c17", "-std=c11", "-std=c99", "-std=c89", "-ansi"}
- , gnulatest = {"-std=gnu17", "-std=gnu11", "-std=gnu99", "-std=gnu89", "-ansi"}
+ , clatest = {"-std=c2x", "-std=c17", "-std=c11", "-std=c99", "-std=c89", "-ansi"}
+ , gnulatest = {"-std=c2x", "-std=gnu17", "-std=gnu11", "-std=gnu99", "-std=gnu89", "-ansi"}
}
end