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/private/tools/cl/parse_include.lua | |
| parent | fd125f21ece875cd6a5037725f2d84f24e658f41 (diff) | |
remove lib.detect.cache
Diffstat (limited to 'xmake/modules/private/tools/cl/parse_include.lua')
| -rw-r--r-- | xmake/modules/private/tools/cl/parse_include.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xmake/modules/private/tools/cl/parse_include.lua b/xmake/modules/private/tools/cl/parse_include.lua index 32088b890..4175e9019 100644 --- a/xmake/modules/private/tools/cl/parse_include.lua +++ b/xmake/modules/private/tools/cl/parse_include.lua @@ -22,15 +22,14 @@ import("core.project.project") import("core.base.hashset") import("core.tool.toolchain") -import("lib.detect.cache") +import("core.cache.detectcache") import("lib.detect.find_tool") import("private.tools.vstool") -- probe include note prefix from cl function _probe_include_note_from_cl() local key = "note_include" - local cacheinfo = cache.load("cldeps.parse_include") - local note = cacheinfo[key] + local note = detectcache:get2("cldeps.parse_include", key) if not note then local cl = find_tool("cl") if cl then @@ -60,8 +59,8 @@ function _probe_include_note_from_cl() end os.tryrm(projectdir) end - cacheinfo[key] = note - cache.save("cldeps.parse_include", cacheinfo) + detectcache:set2("cldeps.parse_include", key, note) + detectcache:save() end return note end |
