summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
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)