blob: 1be5d663291056ad2c2a0419a8e77a0e4e83be1e [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 7bf4c2c02eb7fe1bf24b23e3ba2d7df36495e0aa Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 13 Feb 2019 17:45:09 +0100
4Subject: [PATCH] environment.py: detect windows also if the system string
5 contains 'mingw'
6
7Upstream-Status: Pending
8Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
9---
10 mesonbuild/environment.py | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
14index b4fc0dc..845077e 100644
15--- a/mesonbuild/environment.py
16+++ b/mesonbuild/environment.py
17@@ -1247,7 +1247,7 @@ class MachineInfo:
18 """
19 Machine is windows?
20 """
21- return self.system == 'windows'
22+ return self.system == 'windows' or 'mingw' in self.system
23
24 def is_cygwin(self):
25 """