diff options
| author | ruki <[email protected]> | 2020-12-19 00:38:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-19 00:38:27 +0800 |
| commit | 7f209ab4cad02cf826d5a265323e4dfb40cfe102 (patch) | |
| tree | ef574ec2f7a6ae23162599039fa2d8ffe7667b01 | |
| parent | bbf9e7988955d4385639ee30f5df309ff6891736 (diff) | |
fix cachedir
| -rw-r--r-- | xmake/core/project/cache.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/cache.lua b/xmake/core/project/cache.lua index 6aeb9d716..94be79fd2 100644 --- a/xmake/core/project/cache.lua +++ b/xmake/core/project/cache.lua @@ -67,7 +67,7 @@ function cache._instance(scopename) -- make the cache path local cachepath = (scopename:gsub("%.", "/")) cachepath = (cachepath:gsub("^local%/", path.join(config.directory(), "cache") .. "/")) - cachepath = (cachepath:gsub("^global%/", path.join(global.directory(), "cache") .. "/")) + cachepath = (cachepath:gsub("^global%/", path.join(global.cachedir()) .. "/")) -- save the cache path instance._CACHEPATH = cachepath |
