diff options
Diffstat (limited to 'xmake/core/base')
| -rw-r--r-- | xmake/core/base/global.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/base/global.lua b/xmake/core/base/global.lua index d493235d1..61d9d9e3b 100644 --- a/xmake/core/base/global.lua +++ b/xmake/core/base/global.lua @@ -110,6 +110,11 @@ function global.directory() return global._DIRECTORY end +-- get the global cache directory +function global.cachedir() + return global.get("cachedir") or path.join(global.directory(), "cache") +end + -- load the global configuration function global.load() |
