summaryrefslogtreecommitdiff
path: root/xmake/modules/private/utils/toolchain.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-18 22:41:17 +0800
committerruki <[email protected]>2025-12-18 22:41:17 +0800
commitf7120d2ab183109f53cccb5c2f7c3f477fbc5e95 (patch)
tree5dcc2b7f88dcf672a892d6f36abbc9a724f2d1bd /xmake/modules/private/utils/toolchain.lua
parentdc1bd866c3fb5e851bb9f3e99ced8bf01546826c (diff)
fix toolchain memcache
Diffstat (limited to 'xmake/modules/private/utils/toolchain.lua')
-rw-r--r--xmake/modules/private/utils/toolchain.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/utils/toolchain.lua b/xmake/modules/private/utils/toolchain.lua
index 8845dd1f1..f21995ce2 100644
--- a/xmake/modules/private/utils/toolchain.lua
+++ b/xmake/modules/private/utils/toolchain.lua
@@ -185,7 +185,7 @@ end
function _get_llvm_resourcedir(toolchain)
local memcache = toolchain:memcache()
local cachekey = toolchain:cachekey() .. "_get_llvm_resourcedir"
- local llvm_resourcedir = memcache:get2(cachekey)
+ local llvm_resourcedir = memcache:get(cachekey)
if llvm_resourcedir == nil then
local outdata = try { function() return os.iorunv(toolchain:tool("cc"), {"-print-resource-dir"}) end }
if outdata then
@@ -203,7 +203,7 @@ end
function _get_llvm_rootdir(toolchain)
local memcache = toolchain:memcache()
local cachekey = toolchain:cachekey() .. "_get_llvm_rootdir"
- local llvm_rootdir = memcache:get2(cachekey, "rootdir")
+ local llvm_rootdir = memcache:get(cachekey)
if llvm_rootdir == nil then
local resourcedir = _get_llvm_resourcedir(toolchain)
if resourcedir then