summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/ml.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-08-20 23:52:53 +0800
committerruki <[email protected]>2019-08-20 17:17:24 +0800
commitb4aaf6ec3aa7d2d9d6f21f267a46869d25275d16 (patch)
tree4ffca303046f223ec92a2d7938d13d4ac3622ada /xmake/modules/core/tools/ml.lua
parentda11852ee8510e46ba0436ab125d0d89d6c1f728 (diff)
rewrite vs unicode output
Diffstat (limited to 'xmake/modules/core/tools/ml.lua')
-rw-r--r--xmake/modules/core/tools/ml.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/xmake/modules/core/tools/ml.lua b/xmake/modules/core/tools/ml.lua
index 6eb7c529d..e14cc4e50 100644
--- a/xmake/modules/core/tools/ml.lua
+++ b/xmake/modules/core/tools/ml.lua
@@ -18,9 +18,13 @@
-- @file ml.lua
--
--- https://docs.microsoft.com/en-us/cpp/assembler/masm/ml-and-ml64-command-line-reference
+-- imports
+import("private.tools.vstool")
-- init it
+--
+-- @see https://docs.microsoft.com/en-us/cpp/assembler/masm/ml-and-ml64-command-line-reference
+--
function init(self)
-- init asflags
@@ -103,9 +107,8 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags)
-- ensure the object directory
os.mkdir(path.directory(objectfile))
- -- compile it
- local program, argv = _compargv1(self, sourcefile, objectfile, flags)
- os.runv(program, argv, {vs_unicode_output = true})
+ -- use vstool to compile and enable vs_unicode_output @see https://github.com/xmake-io/xmake/issues/528
+ vstool.runv(_compargv1(self, sourcefile, objectfile, flags))
end
-- make the compile arguments list