diff options
| author | Jérôme Leclercq <[email protected]> | 2022-02-10 12:58:57 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-10 12:58:57 +0100 |
| commit | 1af48f3719c04da3032079bf4e3757bb34482533 (patch) | |
| tree | cc2d54b0e2c03bb036df08c447b88b91dd7aaa29 | |
| parent | 516025ffbb52b7a81d144026db20f3f0d281b65f (diff) | |
Fix vs generator config
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index 2595b19e0..39c90c409 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -96,6 +96,10 @@ function _clear_cache() localcache.clear("option") localcache.clear("package") localcache.clear("toolchain") + + -- force recheck + localcache.set("config", "recheck", true) + localcache.save() end @@ -314,9 +318,9 @@ function _make_targetinfo(mode, arch, target, vcxprojdir) end for k, v in pairs(addrunenvs) do if k:upper() == "PATH" then - runenvs[k] = _make_dirs(v, vcxprojdir) .. "$([System.Environment]::GetEnvironmentVariable('" .. k .. "'))" + runenvs[k] = _make_dirs(v, vcxprojdir) .. ";$([System.Environment]::GetEnvironmentVariable('" .. k .. "'))" else - runenvs[k] = path.joinenv(v) .. "$([System.Environment]::GetEnvironmentVariable('" .. k .."'))" + runenvs[k] = path.joinenv(v) .. ";$([System.Environment]::GetEnvironmentVariable('" .. k .."'))" end end for k, v in pairs(setrunenvs) do @@ -499,7 +503,6 @@ function make(outputdir, vsinfo) -- load targets local targets = {} - local configdata = io.readfile(config.filepath()) for mode_idx, mode in ipairs(vsinfo.modes) do for arch_idx, arch in ipairs(vsinfo.archs) do @@ -592,11 +595,6 @@ function make(outputdir, vsinfo) -- clear local cache _clear_cache() - -- restore previous config data - if configdata then - io.writefile(config.filepath(), configdata) - end - -- leave project directory os.cd(oldir) end |
