summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-12 00:29:12 +0800
committerruki <[email protected]>2021-01-12 00:29:12 +0800
commitbbb48dbc7ee40d510ff6a192417b1b4497d0ca95 (patch)
tree9c735d063db1ef5c9d29b994bf20888a7beaa6de /xmake/core/tool/builder.lua
parente2b269b725607e0458cc337555e64c9c7fecde9f (diff)
fix os.args and split flags
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index 984b23992..00067b435 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -373,7 +373,7 @@ function builder:_preprocess_flags(flags)
flag = flag:trim()
if #flag > 0 then
if flag:find(" ", 1, true) then
- table.join2(results, os.argv(flag))
+ table.join2(results, os.argv(flag, {splitonly = true}))
else
table.insert(results, flag)
end