summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/action/run/make_runenvs.lua2
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)