summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2022-02-28 17:57:19 +0100
committerJérôme Leclercq <[email protected]>2022-02-28 17:57:19 +0100
commit20c92e2b39a13af2ed0d9b115732bb3374417fe6 (patch)
tree5f445454532dfbb6f07401a85ecefb9e2cf7714e
parent12eee1c5d1870150d88fc23981f35b46b2e81848 (diff)
vsxmake: don't clear config
-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()