diff options
| author | ruki <[email protected]> | 2017-03-20 11:06:56 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-03-20 11:06:56 +0800 |
| commit | c220d594863e33ecbba83c46dcd3c64ddd721c2d (patch) | |
| tree | d0da43c541854664fc0314b653ef5cb85aca62df /xmake/tools/cl.lua | |
| parent | 3efb4e5bb65e0d39f2f3571ca0eaaf76c8af8cc7 (diff) | |
fix some bug for vs201x project
Diffstat (limited to 'xmake/tools/cl.lua')
| -rw-r--r-- | xmake/tools/cl.lua | 7 |
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 |
