diff options
| author | A2va <[email protected]> | 2023-11-29 21:52:34 +0100 |
|---|---|---|
| committer | A2va <[email protected]> | 2023-11-29 21:52:34 +0100 |
| commit | 94b012d18fd70123dfb3997248fa3148c1730162 (patch) | |
| tree | 9bd20478f6e7ae65761c1b4952a13b2f30b4517b | |
| parent | f37de48cc3c015c429453c2ffdfd0d527c58cc87 (diff) | |
Add toolchain runenvs in run action
| -rw-r--r-- | xmake/modules/private/action/run/runenvs.lua | 8 |
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 |
