summaryrefslogtreecommitdiff
path: root/xmake/core/base
diff options
context:
space:
mode:
authorruki <[email protected]>2019-04-27 00:07:48 +0800
committerruki <[email protected]>2019-04-26 18:46:51 +0800
commit2c52aa3ecd3c16da67a266d5a63ded6c4bd9fdd8 (patch)
tree4f4d9630001b9dea0dcfa0f19fa793c30a7f25b4 /xmake/core/base
parent6e34dd3a9f72eb9c7743b1eebb10f7fbc5996025 (diff)
impl os.getenvs for windows
Diffstat (limited to 'xmake/core/base')
-rw-r--r--xmake/core/base/os.lua3
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