summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/ml.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-27 22:35:15 +0800
committerruki <[email protected]>2021-10-27 22:35:15 +0800
commit1f2e6861e8160fa1584c67d6783b11b2dbd6c85e (patch)
treed28834667f3be32995ac8096a227b858a3259984 /xmake/modules/core/tools/ml.lua
parentd76dfd89f4c32c51a7dc898f0f86320294df7dfb (diff)
add symbols for masm
Diffstat (limited to 'xmake/modules/core/tools/ml.lua')
-rw-r--r--xmake/modules/core/tools/ml.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/ml.lua b/xmake/modules/core/tools/ml.lua
index 83da11fb6..e9154251d 100644
--- a/xmake/modules/core/tools/ml.lua
+++ b/xmake/modules/core/tools/ml.lua
@@ -20,6 +20,7 @@
-- imports
import("private.tools.vstool")
+import("core.base.hashset")
-- init it
--
@@ -57,6 +58,23 @@ function init(self)
})
end
+-- make the symbol flags
+function nf_symbols(self, levels, target)
+ local flags = nil
+ local values = hashset.from(levels)
+ if values:has("debug") then
+ flags = {}
+ if values:has("edit") then
+ table.insert(flags, "-ZI")
+ elseif values:has("embed") then
+ table.insert(flags, "-Z7")
+ else
+ table.insert(flags, "-Zi")
+ end
+ end
+ return flags
+end
+
-- make the warning flag
function nf_warning(self, level)