summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-03-15 22:42:41 +0800
committerruki <[email protected]>2019-03-15 10:16:08 +0800
commitcc02a8d5a54dd46a63f0da144cfb35b12dcf3263 (patch)
tree826251e1187012ba02d8506771f138711d716088 /xmake/core/tool/builder.lua
parent9036abe2d5d282bd19c9f6bdd2acee9ac03051fc (diff)
add opt.name for has_xxx
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index a08f7226f..0eee93313 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -366,6 +366,8 @@ function builder:_add_flags_from_argument(flags, target, args)
if target then
local key = target:type()
self:_add_flags_from_language(flags, target, {[key] = function (name) return args[name] end})
+ else
+ self:_add_flags_from_language(flags, nil, {target = function (name) return args[name] end})
end
end