diff options
| author | ruki <[email protected]> | 2025-11-12 23:00:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-12 23:00:53 +0800 |
| commit | 05de7a9424b17885b027a155c88925cfb249cb06 (patch) | |
| tree | b472a741c81d3d6955a933135728bef1b71d72a0 | |
| parent | 14493739113bfb4b38f5c93a530a1d8a5bea5ef0 (diff) | |
fix reset_config_and_caches
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 2 | ||||
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vsutils.lua | 2 | ||||
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index 35bece8b3..0a1b0955e 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -401,7 +401,7 @@ function make(outputdir, vsinfo) if mode ~= config.mode() or arch ~= config.arch() then -- reset project configs and caches - vsutils.reset_config_and_caches() + vsutils.reset_config_and_caches(mode, arch) -- check platform platform.load(config.plat(), arch):check() diff --git a/xmake/plugins/project/vstudio/impl/vsutils.lua b/xmake/plugins/project/vstudio/impl/vsutils.lua index c931b7b5b..98fbfd39f 100644 --- a/xmake/plugins/project/vstudio/impl/vsutils.lua +++ b/xmake/plugins/project/vstudio/impl/vsutils.lua @@ -64,7 +64,7 @@ function translate_path(filepath) return (filepath:gsub("::", "#")) end -function reset_config_and_caches() +function reset_config_and_caches(mode, arch) -- reload config, project and platform -- modify config config.set("as", nil, {force = true}) -- force to re-check as for ml/ml64 diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index 0258bc28b..585383872 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -450,7 +450,7 @@ function main(outputdir, vsinfo) print("checking for %s.%s ...", mode, arch) -- reset project configs and caches - vsutils.reset_config_and_caches() + vsutils.reset_config_and_caches(mode, arch) -- check platform platform.load(config.plat(), arch):check() |
