summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/action/run/runenvs.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/modules/private/action/run/runenvs.lua b/xmake/modules/private/action/run/runenvs.lua
index 87d5bbe1c..e8d3d8e4c 100644
--- a/xmake/modules/private/action/run/runenvs.lua
+++ b/xmake/modules/private/action/run/runenvs.lua
@@ -62,7 +62,13 @@ function _make_runpath_on_windows(target)
local runenvs = toolchain:get("runenvs")
if runenvs then
for _, runenv in pairs(runenvs) do
- insert(runenv)
+ if type(runenv) == "table" then
+ for _, env in ipairs(runenv) do
+ insert(env)
+ end
+ else
+ insert(runenv)
+ end
end
end
end