Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From 7bf4c2c02eb7fe1bf24b23e3ba2d7df36495e0aa Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Wed, 13 Feb 2019 17:45:09 +0100 |
| 4 | Subject: [PATCH] environment.py: detect windows also if the system string |
| 5 | contains 'mingw' |
| 6 | |
| 7 | Upstream-Status: Pending |
| 8 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 9 | --- |
| 10 | mesonbuild/environment.py | 2 +- |
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 12 | |
| 13 | diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py |
| 14 | index 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 | """ |