summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools/ar.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/tools/ar.lua
parent7624723775b58c1811287465e6d7c27cede81b31 (diff)
support add_files *.a using ar
Diffstat (limited to 'xmake/scripts/tools/ar.lua')
-rw-r--r--xmake/scripts/tools/ar.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/tools/ar.lua b/xmake/scripts/tools/ar.lua
index b80dc4ddf..66a29c4c3 100644
--- a/xmake/scripts/tools/ar.lua
+++ b/xmake/scripts/tools/ar.lua
@@ -32,7 +32,7 @@ local config = require("base/config")
function ar.init(self, name)
-- save name
- self._NAME = name or "ar"
+ self.name = name or "ar"
-- init arflags
self.arflags = { "-crs" }
@@ -47,7 +47,7 @@ function ar.command_link(self, objfiles, targetfile, flags, logfile)
if logfile then redirect = string.format(" > %s 2>&1", logfile) end
-- make it
- return string.format("%s %s %s %s%s", self._NAME, flags, targetfile, objfiles, redirect)
+ return string.format("%s %s %s %s%s", self.name, flags, targetfile, objfiles, redirect)
end
-- the main function