diff options
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
| -rw-r--r-- | xmake/modules/core/tools/link.lua | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua index ccf679c20..3bcbb238d 100644 --- a/xmake/modules/core/tools/link.lua +++ b/xmake/modules/core/tools/link.lua @@ -92,19 +92,9 @@ end -- make the link arguments list function linkargv(self, objectfiles, targetkind, targetfile, flags, opt) - - -- init arguments - local argv = table.join(flags, "-out:" .. os.args(targetfile), objectfiles) - - -- too long arguments for windows? opt = opt or {} - local args = os.args(argv, {escape = true}) - if #args > 1024 and not opt.rawargs then - local argsfile = os.tmpfile(args) .. ".args.txt" - io.writefile(argsfile, args) - argv = {"@" .. argsfile} - end - return self:program(), argv + local argv = table.join(flags, "-out:" .. targetfile, objectfiles) + return self:program(), opt.rawargs and argv or winos.cmdargv(argv) end -- link the target file |
