diff options
| author | ruki <[email protected]> | 2018-05-19 00:46:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-05-18 22:37:36 +0800 |
| commit | 90008609b8044bd4f600c9cc11e792b1eb4c03e5 (patch) | |
| tree | 0cac18a49ce69826331f38822d32c53001fb43e8 /xmake/modules/core/tools/link.lua | |
| parent | 344d26e6176003b72e8af45ff9202b2f7d11d3dc (diff) | |
improve command arguments
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
| -rw-r--r-- | xmake/modules/core/tools/link.lua | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua index 620c2468d..f9cde52ec 100644 --- a/xmake/modules/core/tools/link.lua +++ b/xmake/modules/core/tools/link.lua @@ -90,20 +90,7 @@ end -- make the link arguments list function linkargv(self, objectfiles, targetkind, targetfile, flags) - - -- make arguments list - local argv = table.join(flags, "-out:" .. targetfile, objectfiles) - - -- too long? - local args = os.args(argv) - if #args > 4096 then - local argfile = targetfile .. ".arg" - io.printf(argfile, args) - argv = {"@" .. argfile} - end - - -- ok? - return self:program(), argv + return self:program(), table.join(flags, "-out:" .. targetfile, objectfiles) end -- link the target file |
