MSYS/MinGW Makfiles: Select the compiler occurring first in PATH

Extend the change from commit e01990999a (Ninja: On Windows, select the
compiler occurring first in PATH, 2020-04-17, v3.18.0-rc1~291^2) to
apply to the MSYS/MinGW Makefiles generators too.  Drop the implied
`gcc` and `g++` default compilers.  This allows MinGW/Clang environments
to work out of the box.

Inspired-by: Mehdi Chinoune <mehdi.chinoune@hotmail.com>
Fixes: #23542
This commit is contained in:
Brad King
2022-05-26 13:05:38 -04:00
parent d45b4f59a4
commit 9019537670
4 changed files with 10 additions and 28 deletions
+7
View File
@@ -0,0 +1,7 @@
mingw-compiler-PATH
-------------------
* The :generator:`MSYS Makefiles` and :generator:`MinGW Makefiles`
generators, when a compiler is not explicitly specified, now select
the first compiler (of any name) found in directories listed by the
``PATH`` environment variable.