diff options
| author | ruki <[email protected]> | 2020-12-23 00:00:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-23 00:00:24 +0800 |
| commit | 5eb09e88851744fb544c5b6ed5e20a448928daa0 (patch) | |
| tree | f65e2570f193ec11693b174bc0b2b4ff1d37a421 /xmake/modules/detect/sdks/find_xcode.lua | |
| parent | fd125f21ece875cd6a5037725f2d84f24e658f41 (diff) | |
remove lib.detect.cache
Diffstat (limited to 'xmake/modules/detect/sdks/find_xcode.lua')
| -rw-r--r-- | xmake/modules/detect/sdks/find_xcode.lua | 7 |
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 |
