summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/tool/builder.lua11
1 files changed, 0 insertions, 11 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index 7a2a16949..6b9aec322 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -372,18 +372,7 @@ function builder:_preprocess_flags(flags)
for _, flag in ipairs(flags) do
flag = flag:trim()
if #flag > 0 then
- local split = false
if flag:find(" ", 1, true) then
- split = true
- -- ignore e.g. -DTEST="Hello world"
- if flag:find("\"", 1, true) then
- local s = flag:gsub("\".-\"", "")
- if not s:find(" ", 1, true) then
- split = false
- end
- end
- end
- if split then
table.join2(results, os.argv(flag))
else
table.insert(results, flag)