diff options
| author | ruki <[email protected]> | 2023-05-18 17:45:59 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-18 17:45:59 +0800 |
| commit | ff9e09d574717cd39384579a9aaf91cea1cc8a4d (patch) | |
| tree | d329e20cb2984fc848576e51b34b10d5c8575a2d | |
| parent | 50609bbb3cf7bb7d7e6c8da127391631ea285ef6 (diff) | |
| parent | e052920b5644119e1fc7c791732b262245ca9d0f (diff) | |
Merge pull request #3756 from xmake-io/envs
improve envs on windows #3752
| -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() |
