summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-19 00:33:58 +0800
committerruki <[email protected]>2020-12-19 00:33:58 +0800
commitbbf9e7988955d4385639ee30f5df309ff6891736 (patch)
treecdd10d7f651bc6834c36b9874c7ce8c04b851c62 /xmake/core/package/package.lua
parent37d4120c6cfd0454b45d606d2969e41631cc1f42 (diff)
add global cache directory
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index cdc0dfcef..135329d10 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1344,7 +1344,7 @@ end
-- the cache directory
function package.cachedir()
- return path.join(global.directory(), "cache", "packages", os.date("%y%m"))
+ return path.join(global.cachedir(), "packages", os.date("%y%m"))
end
-- the install directory