summaryrefslogtreecommitdiff
path: root/xmake/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-20 00:17:34 +0800
committerruki <[email protected]>2017-03-20 00:17:34 +0800
commit3efb4e5bb65e0d39f2f3571ca0eaaf76c8af8cc7 (patch)
tree561817552fd6dedbfc7ea6cff571acec34dd1554 /xmake/tools/cl.lua
parentfb83e4e10d99bb6d7b95898dee0ef8b6b5024896 (diff)
optimize vs201x project plugin
Diffstat (limited to 'xmake/tools/cl.lua')
-rw-r--r--xmake/tools/cl.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/tools/cl.lua b/xmake/tools/cl.lua
index 3986fac90..591e40f7d 100644
--- a/xmake/tools/cl.lua
+++ b/xmake/tools/cl.lua
@@ -23,6 +23,7 @@
--
-- imports
+import("core.project.config")
import("core.project.project")
-- init it
@@ -196,7 +197,7 @@ function nf_language(stdname)
-- select maps
local maps = cmaps
- if _g.kind == "cxx" or _g.kind == "mxx" then
+ if _g.kind == "cxx" or _g.kind == "mxx" or config.get("vs") >= "2015" then
maps = {}
end