summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-08-22 00:36:57 +0800
committerruki <[email protected]>2019-08-21 21:41:47 +0800
commit3e3541b38ed974217159037c2410ba701c0fcaf6 (patch)
tree0a1c26f7fe2e4e20d0d88bc8b40e61914123e69b
parent357c30154201ed11f4ad86b6be7e3590fc36d17e (diff)
improve std language again
-rw-r--r--xmake/modules/core/tools/cl.lua2
-rw-r--r--xmake/modules/core/tools/gcc.lua2
2 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 07f492288..3fbae583b 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -198,6 +198,8 @@ function nf_language(self, stdname)
, gnuxx17 = "-std:c++17"
, cxx1z = "-std:c++17"
, gnuxx1z = "-std:c++17"
+ , cxx20 = "-std=c++latest"
+ , gnuxx20 = "-std=c++latest"
, cxx2a = "-std=c++latest"
, gnuxx2a = "-std=c++latest"
}
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 036b3f709..9b96daf91 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -200,6 +200,8 @@ function nf_language(self, stdname)
, gnuxx17 = "-std=gnu++17"
, cxx1z = "-std=c++1z"
, gnuxx1z = "-std=gnu++1z"
+ , cxx20 = "-std=c++2a"
+ , gnuxx20 = "-std=gnu++2a"
, cxx2a = "-std=c++2a"
, gnuxx2a = "-std=gnu++2a"
}