From 901c937daf4e72aac6de2019f1107ba0b885ee1b Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 14 May 2021 23:27:18 +0800 Subject: fix platform.toolchains --- xmake/core/platform/platform.lua | 4 ++-- 1 file 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 -- cgit v1.3.1