summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/ml.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-05-20 19:01:11 +0800
committerOpportunityLiu <[email protected]>2019-05-21 09:49:08 +0800
commitfc17d122cbfadf4af3aac274e4481c3ecf72e816 (patch)
tree6aaf492ee7218c255c941fe3a9ae4b069fead1df /xmake/modules/core/tools/ml.lua
parent7ed7da5e9b333930081b50ff3781ea0a07417a1b (diff)
support more warnings
Diffstat (limited to 'xmake/modules/core/tools/ml.lua')
-rw-r--r--xmake/modules/core/tools/ml.lua18
1 files changed, 12 insertions, 6 deletions
diff --git a/xmake/modules/core/tools/ml.lua b/xmake/modules/core/tools/ml.lua
index bfdacba20..4f186a58d 100644
--- a/xmake/modules/core/tools/ml.lua
+++ b/xmake/modules/core/tools/ml.lua
@@ -18,6 +18,8 @@
-- @file ml.lua
--
+-- https://docs.microsoft.com/en-us/cpp/assembler/masm/ml-and-ml64-command-line-reference
+
-- init it
function init(self)
@@ -36,10 +38,12 @@ function init(self)
, ["-fvisibility=.*"] = ""
-- warnings
- , ["-Wall"] = "-W3" -- = "-Wall" will enable too more warnings
, ["-W1"] = "-W1"
, ["-W2"] = "-W2"
, ["-W3"] = "-W3"
+ , ["-Wall"] = "-W3" -- /W level Sets the warning level, where level = 0, 1, 2, or 3.
+ , ["-Wextra"] = "-W3"
+ , ["-Weverything"] = "-W3"
, ["-Werror"] = "-WX"
, ["%-Wno%-error=.*"] = ""
@@ -61,11 +65,13 @@ function nf_warning(self, level)
-- the maps
local maps =
{
- none = "-w"
- , less = "-W1"
- , more = "-W3"
- , all = "-W3"
- , error = "-WX"
+ none = "-w"
+ , less = "-W1"
+ , more = "-W3"
+ , all = "-W3"
+ , extra = "-W3"
+ , everything = "-W3"
+ , error = "-WX"
}
-- make it