Skip to content

Commit

Permalink
Update find_package.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi authored Jul 14, 2023
1 parent 8b2e8f5 commit f7d4e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/package/manager/pacman/find_package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function main(name, opt)
local prefix = "mingw-w64-"
local arch = (opt.arch == "x86_64" and "x86_64-" or "i686-")
local msystem = os.getenv("MSYSTEM")
if msystem and msystem ~= "MINGW32" and msystem ~= "MINGW64" then
if msystem and not msystem:startswith("MINGW") then
local i, j = msystem:find("%D+")
name_alt = prefix .. msystem:sub(i, j):lower() .. "-" .. arch .. name
end
Expand Down

0 comments on commit f7d4e69

Please sign in to comment.