summaryrefslogtreecommitdiff
path: root/xmake/modules/private/cache/build_cache.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-21 00:39:47 +0800
committerruki <[email protected]>2022-05-21 00:39:47 +0800
commit8a3cf441ff712130e7f1eede1c80c89997443bbf (patch)
treec9899023757cd4e3917ba3ec09a39425999a5de3 /xmake/modules/private/cache/build_cache.lua
parentbbafe9a6f5fd1afc54a879ffa7cffe7cd3807eb8 (diff)
add ccache dir
Diffstat (limited to 'xmake/modules/private/cache/build_cache.lua')
-rw-r--r--xmake/modules/private/cache/build_cache.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/cache/build_cache.lua b/xmake/modules/private/cache/build_cache.lua
index 62e3cae98..3d207d456 100644
--- a/xmake/modules/private/cache/build_cache.lua
+++ b/xmake/modules/private/cache/build_cache.lua
@@ -67,7 +67,8 @@ end
-- get cache root directory
function rootdir()
- return path.join(config.buildir(), ".build_cache")
+ local cachedir = config.get("cachedir")
+ return cachedir or path.join(config.buildir(), ".build_cache")
end
-- clean cached files