diff options
| author | ruki <[email protected]> | 2021-01-19 22:38:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-01-19 22:38:57 +0800 |
| commit | 74908578f6f35f3a9a917e0256cbe55a2bdacbc8 (patch) | |
| tree | 2a0e2480ac14e21816f1881de36ff6dc3d8cb884 /xmake/plugins/project/vsxmake/vsxmake.lua | |
| parent | d9189f7cd7843a39346a288a58a884ea9dcdf792 (diff) | |
improve autoupdate rule
Diffstat (limited to 'xmake/plugins/project/vsxmake/vsxmake.lua')
| -rw-r--r-- | xmake/plugins/project/vsxmake/vsxmake.lua | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/xmake/plugins/project/vsxmake/vsxmake.lua b/xmake/plugins/project/vsxmake/vsxmake.lua index 3f3617a38..3594cf7e2 100644 --- a/xmake/plugins/project/vsxmake/vsxmake.lua +++ b/xmake/plugins/project/vsxmake/vsxmake.lua @@ -167,6 +167,17 @@ function _writefileifneeded(file, content) io.writefile(file, content) end +function _clear_cacheconf() + config.clear() + config.save() + localcache.clear("config") + localcache.clear("detect") + localcache.clear("option") + localcache.clear("package") + localcache.clear("toolchain") + localcache.save() +end + -- make function make(version) @@ -218,13 +229,6 @@ function make(version) end -- clear config and local cache - config.clear() - config.save() - localcache.clear("config") - localcache.clear("detect") - localcache.clear("option") - localcache.clear("package") - localcache.clear("toolchain") - localcache.save() + _clear_cacheconf() end end |
