From fef82adfa95c89c79aef5e900252d7ec664d2f62 Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Mon, 1 Aug 2022 13:25:58 +0800 Subject: add shared library env for windows --- xmake/modules/private/xrepo/action/env.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua index 10b7ffe0c..02ef2c4e7 100644 --- a/xmake/modules/private/xrepo/action/env.lua +++ b/xmake/modules/private/xrepo/action/env.lua @@ -299,7 +299,9 @@ function _target_addenvs(envs) if target:is_binary() then _addenvs(envs, "PATH", target:targetdir()) elseif target:is_shared() then - if is_host("macosx") then + if is_host("windows") then + _addenvs(envs, "PATH", target:targetdir()) + elseif is_host("macosx") then _addenvs(envs, "LD_LIBRARY_PATH", target:targetdir()) else _addenvs(envs, "DYLD_LIBRARY_PATH", target:targetdir()) -- cgit v1.3.1