summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/windows/tools/nmake.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/nmake.lua
parent7624723775b58c1811287465e6d7c27cede81b31 (diff)
support add_files *.a using ar
Diffstat (limited to 'xmake/scripts/platform/windows/tools/nmake.lua')
-rw-r--r--xmake/scripts/platform/windows/tools/nmake.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/scripts/platform/windows/tools/nmake.lua b/xmake/scripts/platform/windows/tools/nmake.lua
index 0ba2e32e3..3dddc7cf2 100644
--- a/xmake/scripts/platform/windows/tools/nmake.lua
+++ b/xmake/scripts/platform/windows/tools/nmake.lua
@@ -35,7 +35,7 @@ local nmake = nmake or {}
function nmake.init(self, name)
-- save name
- self._NAME = name or "nmake.exe"
+ self.name = name or "nmake.exe"
-- is verbose?
self._VERBOSE = utils.ifelse(xmake._OPTIONS.verbose, "-v", "")
@@ -55,9 +55,9 @@ function nmake.main(self, mkfile, target)
-- make command
local cmd = nil
if mkfile and os.isfile(mkfile) then
- cmd = string.format("%s /nologo /f %s %s VERBOSE=%s", self._NAME, mkfile, target or "", self._VERBOSE)
+ cmd = string.format("%s /nologo /f %s %s VERBOSE=%s", self.name, mkfile, target or "", self._VERBOSE)
else
- cmd = string.format("%s /nologo %s VERBOSE=%s", self._NAME, target or "", self._VERBOSE)
+ cmd = string.format("%s /nologo %s VERBOSE=%s", self.name, target or "", self._VERBOSE)
end
-- done