summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/ld.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-27 23:23:26 +0800
committerruki <[email protected]>2021-01-27 23:23:26 +0800
commit5edaf8c5ea6e68475c6050dc65bf86152ed66d72 (patch)
tree7449788b82a7ee911c63abbfe280d91bc170ef3b /xmake/modules/core/tools/ld.lua
parent0d06846a572219abb13a6454600bcb802b9b7076 (diff)
fix winos.cmdargv for ar
Diffstat (limited to 'xmake/modules/core/tools/ld.lua')
-rw-r--r--xmake/modules/core/tools/ld.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/ld.lua b/xmake/modules/core/tools/ld.lua
index 2e337a572..c641823bb 100644
--- a/xmake/modules/core/tools/ld.lua
+++ b/xmake/modules/core/tools/ld.lua
@@ -70,12 +70,10 @@ end
-- make the link arguments list
function linkargv(self, objectfiles, targetkind, targetfile, flags, opt)
-
- -- init arguments
opt = opt or {}
local argv = table.join("-o", targetfile, objectfiles, flags)
if is_host("windows") and not opt.rawargs then
- argv = winos.cmdargv(argv)
+ argv = winos.cmdargv(argv, {escape = true})
end
return self:program(), argv
end