summaryrefslogtreecommitdiff
path: root/xmake/core/project/config.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-21 22:38:24 +0800
committerruki <[email protected]>2020-12-21 22:38:24 +0800
commitbcc7f92bf3779ab59dd7ab8783ba0eb27cc9be89 (patch)
treeb51be65a5b285637403b35885afe8823bd46aa10 /xmake/core/project/config.lua
parent28696782d6d96f03d05198dc956901f39b1b1a23 (diff)
impl localcache and globalcache
Diffstat (limited to 'xmake/core/project/config.lua')
-rw-r--r--xmake/core/project/config.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua
index 2ccc6ff1a..f27fc2857 100644
--- a/xmake/core/project/config.lua
+++ b/xmake/core/project/config.lua
@@ -148,6 +148,11 @@ function config.filepath()
return path.join(config.directory(), xmake._NAME .. ".conf")
end
+-- get the local cache directory
+function config.cachedir()
+ return path.join(config.directory(), "cache")
+end
+
-- get the configure directory on the current host/arch platform
function config.directory()
if config._DIRECTORY == nil then