diff options
| -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..1a7ba05ac 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:runenvs() + if runenvs and runenvs.PATH then + for _, env in ipairs(path.splitenv(runenvs.PATH)) do + insert(env) + end + end + end end end |
