diff options
| author | A2va <[email protected]> | 2023-11-29 22:31:52 +0100 |
|---|---|---|
| committer | A2va <[email protected]> | 2023-11-29 22:31:52 +0100 |
| commit | 13c1fee798f96df6fc6043a913b87e5e4109f2c0 (patch) | |
| tree | c1d35524012f93a6298956c9651a16a1b81d881e | |
| parent | 94b012d18fd70123dfb3997248fa3148c1730162 (diff) | |
runenv can a be a table
| -rw-r--r-- | xmake/modules/private/action/run/runenvs.lua | 8 |
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 |
