summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-28 23:44:52 +0800
committerruki <[email protected]>2020-10-28 23:44:52 +0800
commit8142f4a4925adf169d7aa7c3fd8dfceed96fd797 (patch)
tree3e425e3ba157d55a545246522938a3985c48fef8
parent69e7b376f0d2e1bfa0ef1ba73c576b63fbd608a9 (diff)
fix xrepo env
-rw-r--r--xmake/modules/private/xrepo/action/env.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua
index bb794ae0f..ba299ca8b 100644
--- a/xmake/modules/private/xrepo/action/env.lua
+++ b/xmake/modules/private/xrepo/action/env.lua
@@ -194,6 +194,9 @@ function main()
local envs = _package_getenvs()
local program = option.get("program")
if program then
+ if envs and envs.PATH then
+ os.setenv("PATH", envs.PATH)
+ end
os.execv(program, option.get("arguments"), {envs = envs})
else
print(envs)