summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-05 23:41:16 +0800
committerruki <[email protected]>2020-11-05 23:41:16 +0800
commitb9b7e1f2a07fdf8f54dd1dedb24f744f6c9c3b07 (patch)
tree0e100c8fc38748c1ce95b2608b4632060f846118
parent96c10fe99ee96cbcde62358747657ec5f8d79993 (diff)
add bin path to win/package
-rw-r--r--xmake/core/package/package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 934958ec4..52cdc2063 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -422,7 +422,7 @@ function _instance:envs()
local envs = self._ENVS
if not envs then
envs = {}
- if self:kind() == "binary" then
+ if self:kind() == "binary" or (self:is_plat("windows", "mingw") and self:config("shared")) then
envs.PATH = {"bin"}
end
-- add LD_LIBRARY_PATH to load *.so directory