diff options
| author | ruki <[email protected]> | 2024-01-23 23:00:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-25 12:09:58 +0800 |
| commit | eeb0f80823bfd4fdd45a9d9a4eede7f407905fea (patch) | |
| tree | 851062ff26866c7d9a911ad5ae91b6979d185438 /xmake/core/tool/toolchain.lua | |
| parent | 229bccd5eeca9fb6da8b93c76d0d13f9c2b85314 (diff) | |
remove toolchain runtimes
Diffstat (limited to 'xmake/core/tool/toolchain.lua')
| -rw-r--r-- | xmake/core/tool/toolchain.lua | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua index ab9673c91..620b862d5 100644 --- a/xmake/core/tool/toolchain.lua +++ b/xmake/core/tool/toolchain.lua @@ -108,41 +108,6 @@ function _instance:is_arch(...) end end --- get toolchain runtimes -function _instance:runtimes() - local runtimes = self._RUNTIMES - if runtimes == nil then - runtimes = {} - local runtimes_supported = hashset.from(table.wrap(self:get("runtimes"))) - for _, runtime in ipairs(table.wrap(self:config("runtimes"))) do - if runtimes_supported:has(runtime) then - table.insert(runtimes, runtime) - end - end - if #runtimes > 0 then - runtimes = table.unwrap(runtimes) - else - runtimes = false - end - self._RUNTIMES = runtimes - end - return runtimes or nil -end - --- has the given runtime for the current toolchains? -function _instance:has_runtime(...) - local runtimes_set = self._RUNTIMES_SET - if runtimes_set == nil then - runtimes_set = hashset.from(table.wrap(self:runtimes())) - self._RUNTIMES_SET = runtimes_set - end - for _, v in ipairs(table.pack(...)) do - if runtimes_set:has(v) then - return true - end - end -end - -- get toolchain info function _instance:info() local arch = self:arch() |
