diff options
| -rw-r--r-- | xmake/core/base/os.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index dee65cbdc..bb2ebec53 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -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() |
