diff options
| author | ruki <[email protected]> | 2021-11-28 13:36:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-11-28 13:36:54 +0800 |
| commit | 6a315bad9fd1370c41ddd0f6cd48ae51dbf0d3f9 (patch) | |
| tree | ca751702a5e42a9ec132314f6ac17dbac23add59 /xmake/core/tool/builder.lua | |
| parent | 3726f42847029c73301a87937e80a9c78465fdb2 (diff) | |
add has_tool
Diffstat (limited to 'xmake/core/tool/builder.lua')
| -rw-r--r-- | xmake/core/tool/builder.lua | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua index e3c5de456..91bb707f8 100644 --- a/xmake/core/tool/builder.lua +++ b/xmake/core/tool/builder.lua @@ -442,16 +442,6 @@ function builder:map_flags(name, values, opt) end end --- is the given name? -function builder:is(...) - local name = self:name() - for _, v in ipairs(table.join(...)) do - if v and name:find("^" .. v:gsub("%-", "%%-") .. "$") then - return true - end - end -end - -- get the format of the given target kind function builder:format(targetkind) local formats = self:get("formats") |
