summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-29 17:02:32 +0800
committerruki <[email protected]>2020-11-29 17:02:32 +0800
commitdf66e75b59c300af221c647faadb58d9db527abd (patch)
tree0e4ff692408def2e2afa8b2a549885cc751611ed /xmake/core/tool/builder.lua
parent4f5ff519cfc45d189f5767aaf76701a289530c41 (diff)
revert preprocess flags
Diffstat (limited to 'xmake/core/tool/builder.lua')
-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)