summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-12-13 00:56:17 +0800
committerruki <[email protected]>2024-12-13 00:56:17 +0800
commitdc64ef1360682592440852ddd3fb7d228c096820 (patch)
treed69b68b23308410d7b6702f593dac3729d044e33 /xmake/core/package/package.lua
parent63d3cafeacd89213324a77f15242f64d016ad8bf (diff)
fix arch
Diffstat (limited to 'xmake/core/package/package.lua')
-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 4575f454d..f5c38f337 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1073,7 +1073,7 @@ function _instance:_rawenvs()
envs.PATH = table.wrap(bindirs)
elseif self:is_binary() then
envs.PATH = {"bin"}
- elseif os.host() == "windows" and self:is_plat("windows", "mingw") and self:config("shared") then
+ elseif os.host() == "windows" and self:is_plat("windows", "mingw") and self:is_arch(os.arch()) and self:config("shared") then
-- bin/*.dll for windows
envs.PATH = {"bin"}
end