summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools/ar.lua
diff options
context:
space:
mode:
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