From 161eecbd34036137d9528bab487d2cfa0668bb4c Mon Sep 17 00:00:00 2001 From: tobil4sk Date: Fri, 21 Feb 2025 17:21:53 +0000 Subject: Fix make check for msys2 mingw system (#1745) On an msys2 install of mingw, make is installed as `mingw32-make`. If `cmake` is installed, that takes priority over `mingw32-make` when matching the pattern `*make*.exe`. This patch changes the pattern to be `*-make*.exe` instead to avoid this bug. --- install.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bat b/install.bat index 37d69b9c..3d7b2ecd 100644 --- a/install.bat +++ b/install.bat @@ -750,7 +750,7 @@ local find_gcc_suite = function() for i, name in ipairs({"make", "ar", "windres", "ranlib"}) do result[name] = find_file(name..".exe", path) if not result[name] then - result[name] = find_file("*"..name.."*.exe", path) + result[name] = find_file("*-"..name.."*.exe", path) end end -- cgit v1.2.3-55-g6feb