summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-24 00:17:57 +0800
committerruki <[email protected]>2020-12-24 00:17:57 +0800
commitffd79490c0398a25a6c8920604e5718878973833 (patch)
treeb3759c39de6460e5939e7d9277d57527554dfd5e
parente2b5ecc20e1a78351ceb1e123299fd5b91d75a4f (diff)
fix save cache
-rw-r--r--xmake/actions/config/main.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua
index 41aec5f75..9e7110c7f 100644
--- a/xmake/actions/config/main.lua
+++ b/xmake/actions/config/main.lua
@@ -276,8 +276,9 @@ force to build in current directory via run `xmake -P .`]], os.projectdir())
local recheck = _need_check(options_changed or not configcache_loaded or autogen)
if recheck then
- -- clear local cache
+ -- clear and flush local cache to disk
localcache.clear()
+ localcache.save()
-- check platform
instance_plat:check()
@@ -324,7 +325,7 @@ force to build in current directory via run `xmake -P .`]], os.projectdir())
config.dump()
end
- -- save options and configure for the given target
+ -- save options and config cache
config.save()
localcache.set("config", "options", options)
localcache.save("config")