summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-26 22:50:17 +0800
committerruki <[email protected]>2021-09-26 22:50:17 +0800
commit57222b35a8c1ba36d5487345e4fb16b40d07fd0e (patch)
tree31a0a2b195e973914912919f5dc9c5da3e1621a0 /xmake/modules/core/tools/cl.lua
parent38ad0e37b05036a5bce2731e921b86eac846cb1b (diff)
add c++latest
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua16
1 files changed, 10 insertions, 6 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index d95d58e5d..0cad0abd6 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -197,12 +197,14 @@ function nf_language(self, stdname)
_g.cmaps =
{
-- stdc
- c99 = "-TP" -- compile as c++ files because older msvc only support c89
- , gnu99 = "-TP"
- , c11 = {"-std:c11", "-TP"}
- , gnu11 = {"-std:c11", "-TP"}
- , c17 = {"-std:c17", "-TP"}
- , gnu17 = {"-std:c17", "-TP"}
+ c99 = "-TP" -- compile as c++ files because older msvc only support c89
+ , gnu99 = "-TP"
+ , c11 = {"-std:c11", "-TP"}
+ , gnu11 = {"-std:c11", "-TP"}
+ , c17 = {"-std:c17", "-TP"}
+ , gnu17 = {"-std:c17", "-TP"}
+ , clatest = "-std:c17"
+ , gnulatest = "-std:c17"
}
end
@@ -222,6 +224,8 @@ function nf_language(self, stdname)
, gnuxx20 = {"-std:c++20", "-std:c++latest"}
, cxx2a = {"-std:c++20", "-std:c++latest"}
, gnuxx2a = {"-std:c++20", "-std:c++latest"}
+ , cxxlatest = "-std:c++latest"
+ , gnuxxlatest = "-std:c++latest"
}
local cxxmaps2 = {}
for k, v in pairs(_g.cxxmaps) do