From b9b7e1f2a07fdf8f54dd1dedb24f744f6c9c3b07 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 5 Nov 2020 23:41:16 +0800 Subject: add bin path to win/package --- xmake/core/package/package.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1