summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-09-23 00:34:48 +0800
committerruki <[email protected]>2017-09-22 21:28:51 +0800
commit0b127416181bb7c5245260153210fd16ebecdcc1 (patch)
tree61f422395256bfebdc3d49b82b6111f5339d0aa6
parentdd224f17541d5011ce1f277f8dd76e82a22540dc (diff)
add cxx languange maps for msvc
-rw-r--r--xmake/modules/core/tools/cl.lua15
1 files changed, 14 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 42ad45892..f4d7c0008 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -177,10 +177,23 @@ function nf_language(self, stdname)
, gnu11 = "-TP"
}
+ -- the stdc++ maps
+ local cxxmaps =
+ {
+ cxx11 = "-std=c++11"
+ , gnuxx11 = "-std=c++11"
+ , cxx14 = "-std:c++14"
+ , gnuxx14 = "-std:c++14"
+ , cxx1z = "-std=c++latest"
+ , gnuxx1z = "-std=c++latest"
+ , cxx17 = "-std=c++17"
+ , gnuxx17 = "-std=c++17"
+ }
+
-- select maps
local maps = cmaps
if self:kind() == "cxx" or self:kind() == "mxx" then
- maps = {}
+ maps = cxxmaps
end
-- make it