From 3efb4e5bb65e0d39f2f3571ca0eaaf76c8af8cc7 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 20 Mar 2017 00:17:34 +0800 Subject: optimize vs201x project plugin --- xmake/tools/cl.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmake/tools/cl.lua') 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 -- cgit v1.3.1