summaryrefslogtreecommitdiff
path: root/xmake/modules/private/cache/build_cache.lua
diff options
context:
space:
mode:
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