diff options
| author | ruki <[email protected]> | 2019-04-27 00:07:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-04-26 18:46:51 +0800 |
| commit | 2c52aa3ecd3c16da67a266d5a63ded6c4bd9fdd8 (patch) | |
| tree | 4f4d9630001b9dea0dcfa0f19fa793c30a7f25b4 /xmake | |
| parent | 6e34dd3a9f72eb9c7743b1eebb10f7fbc5996025 (diff) | |
impl os.getenvs for windows
Diffstat (limited to 'xmake')
| -rw-r--r-- | xmake/core/base/os.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index ee0404971..c20b8ac25 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -907,6 +907,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 + key = key:upper() + end local values = line:sub(p + 1):trim() if #key > 0 then envs[key] = values |
