From e6c8d8c5c8bed2cae7830dec39e60382d7dd1464 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 19 Aug 2022 22:45:35 +0800 Subject: improve make runenvs --- xmake/modules/private/action/run/make_runenvs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.3.1