summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua1
-rw-r--r--xmake/plugins/project/vsxmake/vsxmake.lua13
2 files changed, 7 insertions, 7 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index 26351fa4c..a9a5c1f9c 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -408,7 +408,6 @@ function main(outputdir, vsinfo)
-- clear cache
memcache.clear()
- localcache.clear("config")
localcache.clear("detect")
localcache.clear("option")
localcache.clear("package")
diff --git a/xmake/plugins/project/vsxmake/vsxmake.lua b/xmake/plugins/project/vsxmake/vsxmake.lua
index d152cc383..f475f431d 100644
--- a/xmake/plugins/project/vsxmake/vsxmake.lua
+++ b/xmake/plugins/project/vsxmake/vsxmake.lua
@@ -186,15 +186,16 @@ function _save_plugin_arguments()
vsxmake_cache:save()
end
--- clear configuration cache
-function _clear_cacheconf()
- config.clear()
- config.save()
- localcache.clear("config")
+-- clear cache
+function _clear_cache()
localcache.clear("detect")
localcache.clear("option")
localcache.clear("package")
localcache.clear("toolchain")
+
+ -- force recheck
+ localcache.set("config", "recheck", true)
+
localcache.save()
end
@@ -249,7 +250,7 @@ function make(version)
end
-- clear config and local cache
- _clear_cacheconf()
+ _clear_cache()
-- save plugin arguments for autoupdate
_save_plugin_arguments()