summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/cl.lua6
-rw-r--r--xmake/modules/core/tools/gcc.lua24
2 files changed, 16 insertions, 14 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index d09a67e8e..07f492288 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -196,8 +196,10 @@ function nf_language(self, stdname)
, gnuxx14 = "-std:c++14"
, cxx17 = "-std:c++17"
, gnuxx17 = "-std:c++17"
- , cxx1z = "-std:c++latest"
- , gnuxx1z = "-std:c++latest"
+ , cxx1z = "-std:c++17"
+ , gnuxx1z = "-std:c++17"
+ , cxx2a = "-std=c++latest"
+ , gnuxx2a = "-std=c++latest"
}
local cxxmaps2 = {}
for k, v in pairs(_g.cxxmaps) do
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 31fd45ac5..036b3f709 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -190,18 +190,18 @@ function nf_language(self, stdname)
if _g.cxxmaps == nil then
_g.cxxmaps =
{
- cxx98 = "-std=c++98"
- , gnuxx98 = "-std=gnu++98"
- , cxx11 = "-std=c++11"
- , gnuxx11 = "-std=gnu++11"
- , cxx14 = "-std=c++14"
- , gnuxx14 = "-std=gnu++14"
- , cxx17 = "-std=c++17"
- , gnuxx17 = "-std=gnu++17"
- , cxx1z = "-std=c++1z"
- , gnuxx1z = "-std=gnu++1z"
- , cxx2a = "-std=c++2a"
- , gnuxx2a = "-std=gnu++2a"
+ cxx98 = "-std=c++98"
+ , gnuxx98 = "-std=gnu++98"
+ , cxx11 = "-std=c++11"
+ , gnuxx11 = "-std=gnu++11"
+ , cxx14 = "-std=c++14"
+ , gnuxx14 = "-std=gnu++14"
+ , cxx17 = "-std=c++17"
+ , gnuxx17 = "-std=gnu++17"
+ , cxx1z = "-std=c++1z"
+ , gnuxx1z = "-std=gnu++1z"
+ , cxx2a = "-std=c++2a"
+ , gnuxx2a = "-std=gnu++2a"
}
local cxxmaps2 = {}
for k, v in pairs(_g.cxxmaps) do