summaryrefslogtreecommitdiff
path: root/xmake/core/platform/platform.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-23 23:00:29 +0800
committerruki <[email protected]>2024-01-25 12:09:58 +0800
commiteeb0f80823bfd4fdd45a9d9a4eede7f407905fea (patch)
tree851062ff26866c7d9a911ad5ae91b6979d185438 /xmake/core/platform/platform.lua
parent229bccd5eeca9fb6da8b93c76d0d13f9c2b85314 (diff)
remove toolchain runtimes
Diffstat (limited to 'xmake/core/platform/platform.lua')
-rw-r--r--xmake/core/platform/platform.lua28
1 files changed, 2 insertions, 26 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua
index 4a4b4bf96..f9a8fba77 100644
--- a/xmake/core/platform/platform.lua
+++ b/xmake/core/platform/platform.lua
@@ -147,30 +147,6 @@ function _instance:runenvs()
return runenvs
end
--- get runtimes
-function _instance:runtimes()
- local runtimes = self:_memcache():get("runtimes")
- if runtimes == nil then
- runtimes = config.get("runtimes")
- if self:name() == "windows" then
- runtimes = runtimes or config.get("vs_runtime")
- elseif self:name() == "android" then
- runtimes = runtimes or config.get("ndk_cxxstl")
- end
- if runtimes then
- runtimes = runtimes:split(",", {plain = true})
- if #runtimes > 0 then
- runtimes = table.unwrap(runtimes)
- else
- runtimes = nil
- end
- end
- runtimes = runtimes or false
- self:_memcache():set("runtimes", runtimes)
- end
- return runtimes or nil
-end
-
-- get the toolchains
function _instance:toolchains(opt)
local toolchains = self:_memcache():get("toolchains")
@@ -187,7 +163,7 @@ function _instance:toolchains(opt)
local toolchain_given = config.get("toolchain")
if toolchain_given then
local toolchain_inst, errors = toolchain.load(toolchain_given, {
- plat = self:name(), arch = self:arch(), runtimes = self:runtimes()})
+ plat = self:name(), arch = self:arch()})
-- attempt to load toolchain from project
if not toolchain_inst and platform._project() then
toolchain_inst = platform._project().toolchain(toolchain_given)
@@ -207,7 +183,7 @@ function _instance:toolchains(opt)
if names then
for _, name in ipairs(table.wrap(names)) do
local toolchain_inst, errors = toolchain.load(name, {
- plat = self:name(), arch = self:arch(), runtimes = self:runtimes()})
+ plat = self:name(), arch = self:arch()})
-- attempt to load toolchain from project
if not toolchain_inst and platform._project() then
toolchain_inst = platform._project().toolchain(name)