diff options
| author | ruki <[email protected]> | 2021-01-19 00:58:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-01-19 00:58:16 +0800 |
| commit | 576784050e14cd1eed1ab9284399e2731a885335 (patch) | |
| tree | 96dcf4a16780bf698307b25aee36dc8b01722832 | |
| parent | fbaadb6a0f41d29dd14afb3910e2ff9be3719e04 (diff) | |
improve vs/vsxmake
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 10 | ||||
| -rw-r--r-- | xmake/plugins/project/vsxmake/vsxmake.lua | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index 8980d0449..e02fd5dec 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -308,6 +308,16 @@ function make(outputdir, vsinfo) vs201x_vcxproj_filters.make(vsinfo, target) 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() + -- leave project directory os.cd(oldir) end diff --git a/xmake/plugins/project/vsxmake/vsxmake.lua b/xmake/plugins/project/vsxmake/vsxmake.lua index 926533dbf..3f3617a38 100644 --- a/xmake/plugins/project/vsxmake/vsxmake.lua +++ b/xmake/plugins/project/vsxmake/vsxmake.lua @@ -24,6 +24,7 @@ import("vstudio.impl.vsinfo", { rootdir = path.directory(os.scriptdir()) }) import("render") import("getinfo") import("core.project.config") +import("core.cache.localcache") local template_root = path.join(os.scriptdir(), "vsproj", "templates") local template_sln = path.join(template_root, "sln", "vsxmake.sln") @@ -215,5 +216,15 @@ function make(version) _trycp(template_items, proj_dir) _trycp(template_itemfil, proj_dir) 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() end end |
