summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/sdks/find_xcode.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-23 00:00:24 +0800
committerruki <[email protected]>2020-12-23 00:00:24 +0800
commit5eb09e88851744fb544c5b6ed5e20a448928daa0 (patch)
treef65e2570f193ec11693b174bc0b2b4ff1d37a421 /xmake/modules/detect/sdks/find_xcode.lua
parentfd125f21ece875cd6a5037725f2d84f24e658f41 (diff)
remove lib.detect.cache
Diffstat (limited to 'xmake/modules/detect/sdks/find_xcode.lua')
-rw-r--r--xmake/modules/detect/sdks/find_xcode.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/modules/detect/sdks/find_xcode.lua b/xmake/modules/detect/sdks/find_xcode.lua
index 80d7cf5cf..02ea606bf 100644
--- a/xmake/modules/detect/sdks/find_xcode.lua
+++ b/xmake/modules/detect/sdks/find_xcode.lua
@@ -19,10 +19,10 @@
--
-- imports
-import("lib.detect.cache")
import("core.base.option")
import("core.base.global")
import("core.project.config")
+import("core.cache.detectcache")
import("lib.detect.find_directory")
import("private.tools.codesign")
@@ -144,7 +144,7 @@ function main(sdkdir, opt)
-- attempt to load cache first
local key = "detect.sdks.find_xcode"
- local cacheinfo = cache.load(key)
+ local cacheinfo = detectcache:get(key) or {}
if not opt.force and cacheinfo.xcode and cacheinfo.xcode.sdkdir and os.isdir(cacheinfo.xcode.sdkdir) then
return cacheinfo.xcode
end
@@ -158,6 +158,7 @@ function main(sdkdir, opt)
-- save to cache
cacheinfo.xcode = xcode or false
- cache.save(key, cacheinfo)
+ detectcache:set(key, cacheinfo)
+ detectcache:save()
return xcode
end