summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-14 10:53:05 +0800
committerruki <[email protected]>2017-02-14 10:53:13 +0800
commit7f135386a31972e4f4e486ae5854115b2e1af5a2 (patch)
tree6a8b9329f3209c7cc72cb7aaac0a581480eb1f93 /xmake/core/tool/builder.lua
parent5e23aa6f9344b21dee98ad3fad9182808d690485 (diff)
select feature for compiler
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index fe0af6af9..0cee9be22 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -225,6 +225,16 @@ function builder:get(name)
return self:_tool().get(name)
end
+-- get feature of the tool
+function builder:feature(name)
+
+ -- get it
+ local features = self:_tool().get("features")
+ if features then
+ return features[name]
+ end
+end
+
-- check the given flags
function builder:check(flags)