summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-05-14 23:27:18 +0800
committerruki <[email protected]>2021-05-14 23:27:18 +0800
commit901c937daf4e72aac6de2019f1107ba0b885ee1b (patch)
treebd94e43a0a3d75a63ba59f221dc768b55edc0ad4
parent1d5cc8b15b614d916c2781a298b7b0000858ebb4 (diff)
fix platform.toolchains
-rw-r--r--xmake/core/platform/platform.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua
index b9913f1b8..ea41777c6 100644
--- a/xmake/core/platform/platform.lua
+++ b/xmake/core/platform/platform.lua
@@ -515,7 +515,7 @@ end
-- get the all toolchains
function platform.toolchains()
- local toolchains = self._memcache():get("toolchains")
+ local toolchains = platform._memcache():get("toolchains")
if not toolchains then
toolchains = {}
local dirs = toolchain.directories()
@@ -529,7 +529,7 @@ function platform.toolchains()
end
end
end
- self._memcache():set("toolchains", toolchains)
+ platform._memcache():set("toolchains", toolchains)
end
return toolchains
end