summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-10 23:55:07 +0800
committerruki <[email protected]>2020-04-10 17:30:44 +0800
commit7b64f2e4d507a44c214edf408cba042960204f9a (patch)
treeaea2e43cfbb712431cfdce63c1c43c7fb02763af /xmake/core/tool/builder.lua
parentf22095d82b0f30932c0fa5779793f0e0551ee933 (diff)
fix get config flags
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index c3d67470e..4d2e25a0b 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -193,7 +193,10 @@ end
-- add flags from the configure
function builder:_add_flags_from_config(flags)
for _, flagkind in ipairs(self:_flagkinds()) do
- table.join2(flags, config.get(flagkind))
+ local values = config.get(flagkind)
+ if values then
+ table.join2(flags, os.argv(values))
+ end
end
end