diff options
| author | ruki <[email protected]> | 2022-05-21 00:39:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-21 00:39:47 +0800 |
| commit | 8a3cf441ff712130e7f1eede1c80c89997443bbf (patch) | |
| tree | c9899023757cd4e3917ba3ec09a39425999a5de3 /xmake/modules | |
| parent | bbafe9a6f5fd1afc54a879ffa7cffe7cd3807eb8 (diff) | |
add ccache dir
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/cache/build_cache.lua | 3 |
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 |
