summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/sdar.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-26 00:07:17 +0800
committerruki <[email protected]>2020-03-25 18:43:45 +0800
commit493fffe734e944e153c04bbe46e77c2069581f47 (patch)
tree456f14038827fad4f33f1cc64a7c8d9d01e9ca79 /xmake/modules/core/tools/sdar.lua
parentc570330bbc7fd11410985a46486e7c5edc66d9bf (diff)
improve os.args
Diffstat (limited to 'xmake/modules/core/tools/sdar.lua')
-rw-r--r--xmake/modules/core/tools/sdar.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/sdar.lua b/xmake/modules/core/tools/sdar.lua
index ba991e780..be8cdae6c 100644
--- a/xmake/modules/core/tools/sdar.lua
+++ b/xmake/modules/core/tools/sdar.lua
@@ -54,7 +54,7 @@ function linkargv(self, objectfiles, targetkind, targetfile, flags, opt)
-- too long arguments for windows?
if is_host("windows") then
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)