summaryrefslogtreecommitdiff
path: root/xmake/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-20 11:06:56 +0800
committerruki <[email protected]>2017-03-20 11:06:56 +0800
commitc220d594863e33ecbba83c46dcd3c64ddd721c2d (patch)
treed0da43c541854664fc0314b653ef5cb85aca62df /xmake/tools/cl.lua
parent3efb4e5bb65e0d39f2f3571ca0eaaf76c8af8cc7 (diff)
fix some bug for vs201x project
Diffstat (limited to 'xmake/tools/cl.lua')
-rw-r--r--xmake/tools/cl.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/xmake/tools/cl.lua b/xmake/tools/cl.lua
index 591e40f7d..f67f072ab 100644
--- a/xmake/tools/cl.lua
+++ b/xmake/tools/cl.lua
@@ -23,7 +23,6 @@
--
-- imports
-import("core.project.config")
import("core.project.project")
-- init it
@@ -137,10 +136,10 @@ function nf_warning(level)
-- the maps
local maps =
{
- none = "-w"
+ none = "-W0"
, less = "-W1"
, more = "-W3"
- , all = "-W3"
+ , all = "-W3" -- = "-Wall" will enable too more warnings
, error = "-WX"
}
@@ -197,7 +196,7 @@ function nf_language(stdname)
-- select maps
local maps = cmaps
- if _g.kind == "cxx" or _g.kind == "mxx" or config.get("vs") >= "2015" then
+ if _g.kind == "cxx" or _g.kind == "mxx" then
maps = {}
end