diff options
| author | ruki <[email protected]> | 2020-03-26 00:07:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-25 18:43:45 +0800 |
| commit | 493fffe734e944e153c04bbe46e77c2069581f47 (patch) | |
| tree | 456f14038827fad4f33f1cc64a7c8d9d01e9ca79 /xmake/modules/core/tools/link.lua | |
| parent | c570330bbc7fd11410985a46486e7c5edc66d9bf (diff) | |
improve os.args
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
| -rw-r--r-- | xmake/modules/core/tools/link.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua index b45f3c7a9..ccf679c20 100644 --- a/xmake/modules/core/tools/link.lua +++ b/xmake/modules/core/tools/link.lua @@ -94,11 +94,11 @@ end function linkargv(self, objectfiles, targetkind, targetfile, flags, opt) -- init arguments - local argv = table.join(flags, "-out:" .. targetfile, objectfiles) + local argv = table.join(flags, "-out:" .. os.args(targetfile), objectfiles) -- too long arguments for windows? opt = opt or {} - local args = os.args(argv) + 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) |
