summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)