diff options
| author | ruki <[email protected]> | 2022-08-19 22:45:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-19 10:34:37 +0800 |
| commit | e6c8d8c5c8bed2cae7830dec39e60382d7dd1464 (patch) | |
| tree | 05ac55428114c292100c184023cdd1c34a5581fb | |
| parent | dbb05667d07d27f1fb5a11cd39f8c448e9819cd3 (diff) | |
improve make runenvs
| -rw-r--r-- | xmake/modules/private/action/run/make_runenvs.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/run/make_runenvs.lua b/xmake/modules/private/action/run/make_runenvs.lua index 2ca69c033..a902a8cc8 100644 --- a/xmake/modules/private/action/run/make_runenvs.lua +++ b/xmake/modules/private/action/run/make_runenvs.lua @@ -82,7 +82,7 @@ function main(target) end -- add search directories for all dependent shared libraries on windows - if is_plat("windows") or (is_plat("mingw") and is_host("windows")) then + if target:is_plat("windows") or (target:is_plat("mingw") and is_host("windows")) then -- get PATH table local pathenv = add["PATH"] or set["PATH"] local runpath = _make_runpath_on_windows(target) |
