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/tools/link/has_flags.lua | |
| parent | fd125f21ece875cd6a5037725f2d84f24e658f41 (diff) | |
remove lib.detect.cache
Diffstat (limited to 'xmake/modules/detect/tools/link/has_flags.lua')
| -rw-r--r-- | xmake/modules/detect/tools/link/has_flags.lua | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/xmake/modules/detect/tools/link/has_flags.lua b/xmake/modules/detect/tools/link/has_flags.lua index 82d4f6854..819a84279 100644 --- a/xmake/modules/detect/tools/link/has_flags.lua +++ b/xmake/modules/detect/tools/link/has_flags.lua @@ -19,7 +19,7 @@ -- -- imports -import("lib.detect.cache") +import("core.cache.detectcache") import("lib.detect.find_tool") -- try running @@ -42,11 +42,8 @@ function _check_from_arglist(flags, opt) -- make allflags key local flagskey = opt.program .. "_" .. (opt.programver or "") - -- load cache - local cacheinfo = cache.load(key) - -- get all allflags from argument list - local allflags = cacheinfo[flagskey] + local allflags = detectcache:get2(key, flagskey) if not allflags then -- get argument list @@ -67,8 +64,8 @@ function _check_from_arglist(flags, opt) end -- save cache - cacheinfo[flagskey] = allflags - cache.save(key, cacheinfo) + detectcache:set2(key, flagskey, allflags) + detectcache:save() end return allflags[flags[1]:gsub("/", "-"):lower()] end |
