summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-21 22:40:00 +0800
committerruki <[email protected]>2023-08-21 22:40:00 +0800
commite73df8b4713c4b8c928c77d0baa4185be1db6517 (patch)
tree24fe99e816327a3a3e552e1e14e224e559c41b1c
parent3af4b92bef5b4f9c58575cb4ea5770d846a554c8 (diff)
fix vs project generator #4098
-rw-r--r--xmake/core/platform/platform.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua
index 148120d49..8a56a816e 100644
--- a/xmake/core/platform/platform.lua
+++ b/xmake/core/platform/platform.lua
@@ -234,7 +234,7 @@ end
-- do check
function _instance:check()
- local checked = self._CHECKED
+ local checked = self:_memcache():get("checked")
if checked ~= nil then
return checked
end
@@ -260,13 +260,13 @@ function _instance:check()
end
end
if #toolchains == 0 then
- self._CHECKED = false
+ self:_memcache():set("checked", false)
return false, "toolchains not found!"
end
-- save valid toolchains
config.set("__toolchains_" .. self:name() .. "_" .. self:arch(), toolchains_valid)
- self._CHECKED = true
+ self:_memcache():set("checked", true)
return true
end