summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/action/run/runenvs.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/modules/private/action/run/runenvs.lua b/xmake/modules/private/action/run/runenvs.lua
index 9f1473335..87d5bbe1c 100644
--- a/xmake/modules/private/action/run/runenvs.lua
+++ b/xmake/modules/private/action/run/runenvs.lua
@@ -58,6 +58,14 @@ function _make_runpath_on_windows(target)
end
insert_target(dep)
end
+ for _, toolchain in ipairs(target:toolchains()) do
+ local runenvs = toolchain:get("runenvs")
+ if runenvs then
+ for _, runenv in pairs(runenvs) do
+ insert(runenv)
+ end
+ end
+ end
end
end