summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-19 22:45:35 +0800
committerruki <[email protected]>2022-08-19 10:34:37 +0800
commite6c8d8c5c8bed2cae7830dec39e60382d7dd1464 (patch)
tree05ac55428114c292100c184023cdd1c34a5581fb
parentdbb05667d07d27f1fb5a11cd39f8c448e9819cd3 (diff)
improve make runenvs
-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)