summaryrefslogtreecommitdiff
path: root/xmake/modules/package/manager/pacman/install_package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-11-22 22:33:39 +0800
committerruki <[email protected]>2024-11-22 22:33:39 +0800
commit75d4f150fb9fddef4672a7793152b6fb2bbe621b (patch)
treed8a7c2fbcc59ac1545c7eedb8c4f989fff0672e5 /xmake/modules/package/manager/pacman/install_package.lua
parent5704354222571b0ad4af27365ba57c1bd32d0112 (diff)
fix pacman.find_package
Diffstat (limited to 'xmake/modules/package/manager/pacman/install_package.lua')
-rw-r--r--xmake/modules/package/manager/pacman/install_package.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/pacman/install_package.lua b/xmake/modules/package/manager/pacman/install_package.lua
index 046a37f51..179fe1156 100644
--- a/xmake/modules/package/manager/pacman/install_package.lua
+++ b/xmake/modules/package/manager/pacman/install_package.lua
@@ -42,12 +42,13 @@ function main(name, opt)
raise("pacman not found!")
end
- -- for msys2/mingw? mingw-w64-[i686|x86_64]-xxx
+ -- for msys2
if is_subhost("msys") then
local msystem = configs.msystem
if not msystem and opt.plat == "mingw" then
msystem = "mingw"
end
+ -- mingw? mingw-w64-[i686|x86_64]-xxx
if msystem == "mingw" then
-- try to get the package prefix from the environment first
-- https://www.msys2.org/docs/package-naming/