diff options
| author | ruki <[email protected]> | 2024-02-22 23:38:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-22 23:38:24 +0800 |
| commit | e283b55ac049f45685d78399f50178cdb03f448d (patch) | |
| tree | 747b950d957a78b94d056d5019077e517e1a0e9f | |
| parent | 4785dbaf7dc11ff84ccdc2b0943618950363d1c5 (diff) | |
remove unused code
| -rw-r--r-- | xmake/toolchains/msvc/load.lua | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/xmake/toolchains/msvc/load.lua b/xmake/toolchains/msvc/load.lua index c77132e30..90aec06a9 100644 --- a/xmake/toolchains/msvc/load.lua +++ b/xmake/toolchains/msvc/load.lua @@ -22,27 +22,6 @@ import("core.base.option") import("core.project.config") import("detect.sdks.find_vstudio") -function _get_msvc_runenvs(package) - local envs = {} - local curenvs = os.getenvs() - for k, v in pairs(os.joinenvs(_get_msvc(package):runenvs())) do - -- fix case naming conflict for msbuild between the new msvc envs and current environment, if we are running xmake in vs prompt. - -- @see https://github.com/xmake-io/xmake/issues/4751 - local ck_found - for ck, cv in pairs(curenvs) do - if k:lower() == ck:lower() and k ~= ck then - ck_found = ck - break - end - end - if ck_found then - envs[ck_found] = v - else - envs[k] = v - end - end - return envs -end -- add the given vs environment function _add_vsenv(toolchain, name, curenvs) |
