summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-06-27 19:57:45 +0800
committerruki <[email protected]>2017-06-27 19:59:50 +0800
commitd88cab7a400904e6a44f795479cbc3f2bdcc6297 (patch)
treedaa207a507d1a6d836a22a5b6616c8936d0ff8f6 /xmake/core/tool/builder.lua
parent08423656d08715670959b69c64957e9e9b1b3db1 (diff)
improve has_cxsnippet and add links
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index 53d658c8c..9143fcbee 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -194,6 +194,13 @@ function builder:_addflags_from_targetdeps(results, target, flagname)
end
end
+-- add flags from the argument option
+function builder:_addflags_from_argument(flags, args)
+ for _, flagkind in ipairs(self:_flagkinds()) do
+ table.join2(flags, self:_mapflags(args[flagkind]))
+ end
+end
+
-- add flags (named) from the language
function builder:_addflags_from_language(flags, target)