Skip to content

Commit

Permalink
Merge pull request #3756 from xmake-io/envs
Browse files Browse the repository at this point in the history
improve envs on windows #3752
  • Loading branch information
waruqi authored May 18, 2023
2 parents 50609bb + e052920 commit ff9e09d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xmake/core/base/os.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,9 @@ function os.getenvs()
local p = line:find('=', 1, true)
if p then
local key = line:sub(1, p - 1):trim()
if os.host() == "windows" then
-- only translate Path to PATH on windows
-- @see https://github.com/xmake-io/xmake/issues/3752
if os.host() == "windows" and key:lower() == "path" then
key = key:upper()
end
local values = line:sub(p + 1):trim()
Expand Down

0 comments on commit ff9e09d

Please sign in to comment.