compiler: detect many versions of mingw64
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 2 Mar 2017 16:01:01 +0000 (11:01 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 2 Mar 2017 16:01:24 +0000 (11:01 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/compiler/abstract_compiler.nit

index 5a0b684..11ff040 100644 (file)
@@ -404,7 +404,7 @@ ifeq ($(uname_S),Darwin)
 endif
 
 # Special configuration for Windows under mingw64
-ifeq ($(uname_S),MINGW64_NT-10.0)
+ifneq ($(findstring MINGW64,$(uname_S)),)
        # Use the pcreposix regex library
        LDLIBS += -lpcreposix