summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-01 13:37:20 +0800
committerGitHub <[email protected]>2022-08-01 13:37:20 +0800
commit67a3575689b9761677b48bfb4588712f117924fb (patch)
treee87598dd24ff152dba2cdcafdd1230bc40feb335
parent08353c53b3f207462b66a33b38c03de98f49ad1e (diff)
parentfef82adfa95c89c79aef5e900252d7ec664d2f62 (diff)
Merge pull request #2632 from xq114/dev
add shared library env for windows
-rw-r--r--xmake/modules/private/xrepo/action/env.lua4
1 files changed, 3 insertions, 1 deletions
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())