summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/ar.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-05-19 00:46:16 +0800
committerruki <[email protected]>2018-05-18 22:37:36 +0800
commit90008609b8044bd4f600c9cc11e792b1eb4c03e5 (patch)
tree0cac18a49ce69826331f38822d32c53001fb43e8 /xmake/modules/core/tools/ar.lua
parent344d26e6176003b72e8af45ff9202b2f7d11d3dc (diff)
improve command arguments
Diffstat (limited to 'xmake/modules/core/tools/ar.lua')
-rw-r--r--xmake/modules/core/tools/ar.lua15
1 files changed, 2 insertions, 13 deletions
diff --git a/xmake/modules/core/tools/ar.lua b/xmake/modules/core/tools/ar.lua
index 935ca925f..de70ddc46 100644
--- a/xmake/modules/core/tools/ar.lua
+++ b/xmake/modules/core/tools/ar.lua
@@ -55,19 +55,8 @@ function linkargv(self, objectfiles, targetkind, targetfile, flags)
-- check
assert(targetkind == "static")
- -- make arguments list
- local argv = table.join(flags, targetfile, objectfiles)
-
- -- too long?
- local args = os.args(argv)
- if #args > 4096 and os.host() == "windows" then
- local argfile = targetfile .. ".arg"
- io.printf(argfile, args)
- argv = {"@" .. argfile}
- end
-
- -- ok?
- return self:program(), argv
+ -- make it
+ return self:program(), table.join(flags, targetfile, objectfiles)
end
-- link the library file