From 8a3cf441ff712130e7f1eede1c80c89997443bbf Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 21 May 2022 00:39:47 +0800 Subject: add ccache dir --- xmake/modules/private/cache/build_cache.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmake/modules/private/cache/build_cache.lua') 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 -- cgit v1.3.1