summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-10 21:07:03 +0800
committerruki <[email protected]>2021-10-10 21:07:03 +0800
commit0fe9bb8a7018b7b183873c3dcd8856bf7ea6b6c9 (patch)
tree28fe530d49d0058f6cadbabb16adffb4b2236eed
parentb2da3200b61621acfb29ab88d1c8f5888f8f9713 (diff)
improve languages
-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 2cf31e2dc..99938e59a 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -199,8 +199,8 @@ function nf_language(self, stdname)
, gnuxx17 = "-std=gnu++17"
, cxx1z = "-std=c++1z"
, gnuxx1z = "-std=gnu++1z"
- , cxx20 = "-std=c++20"
- , gnuxx20 = "-std=gnu++20"
+ , cxx20 = {"-std=c++20", "-std=c++2a"}
+ , gnuxx20 = {"-std=gnu++20", "-std=c++2a"}
, cxx2a = "-std=c++2a"
, gnuxx2a = "-std=gnu++2a"
, cxxlatest = {"-std=c++20", "-std=c++2a", "-std=c++17", "-std=c++14", "-std=c++11", "-std=c++1z", "-std=c++98"}