Skip to content

Commit 0f22e2e

Browse files
committed
mingw: allow building with an MSYS2 runtime v3.x
Recently the Git for Windows project started the upgrade process to a MSYS2 runtime version based on Cygwin v3.x. This has the very notable consequence that `$(uname -r)` no longer reports a version starting with "2", but a version with "3". That breaks our build, as df5218b (config.mak.uname: support MSys2, 2016-01-13) simply did not expect the version reported by `uname -r` to depend on the underlying Cygwin version: it expected the reported version to match the "2" in "MSYS2". So let's invert that test case to test for *anything else* than a version starting with "1" (for MSys). That should safeguard us for the future, even if Cygwin ends up releasing versionsl like 314.272.65536. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 1a02835 commit 0f22e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.mak.uname

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
626626
NO_GETTEXT = YesPlease
627627
COMPAT_CLFAGS += -D__USE_MINGW_ACCESS
628628
else
629-
ifeq ($(shell expr "$(uname_R)" : '2\.'),2)
629+
ifneq ($(shell expr "$(uname_R)" : '1\.'),2)
630630
# MSys2
631631
prefix = /usr/
632632
# Enable DEP

0 commit comments

Comments
 (0)