summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/windows/tools/ml.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-04 11:49:37 +0800
committerruki <[email protected]>2015-12-04 11:49:37 +0800
commit6ece8be70e5141a69720f28e4f18b20664142ae3 (patch)
tree9ae6301f68ecec013c6023a2b6d74bd702685f7a /xmake/scripts/platform/windows/tools/ml.lua
parent7624723775b58c1811287465e6d7c27cede81b31 (diff)
support add_files *.a using ar
Diffstat (limited to 'xmake/scripts/platform/windows/tools/ml.lua')
-rw-r--r--xmake/scripts/platform/windows/tools/ml.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/platform/windows/tools/ml.lua b/xmake/scripts/platform/windows/tools/ml.lua
index c2ea9b9ab..5a6034320 100644
--- a/xmake/scripts/platform/windows/tools/ml.lua
+++ b/xmake/scripts/platform/windows/tools/ml.lua
@@ -33,7 +33,7 @@ local platform = require("platform/platform")
function ml.init(self, name)
-- save name
- self._NAME = name or "ml.exe"
+ self.name = name or "ml.exe"
-- init asflags
self.asflags = { "-nologo", "-Gd", "-MP4", "-D_MBCS", "-D_CRT_SECURE_NO_WARNINGS"}
@@ -84,7 +84,7 @@ function ml.command_compile(self, srcfile, objfile, flags, logfile)
if logfile then redirect = string.format(" > %s 2>&1", logfile) end
-- make it
- return string.format("%s -c %s -Fo%s %s%s", self._NAME, flags, objfile, srcfile, redirect)
+ return string.format("%s -c %s -Fo%s %s%s", self.name, flags, objfile, srcfile, redirect)
end
-- make the define flag