From fe645a0a9e2da230d2c500af1f5b2db5da1e364d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 23 Aug 2019 09:04:57 -0700 Subject: [PATCH] envconfig: make MachineInfo.is_windows and is_cygwin match mesonlib The mesonlib versions are slightly more specific in what they accept. --- mesonbuild/envconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index ab39b0def..f7a43a06e 100644 --- a/mesonbuild/envconfig.py +++ b/mesonbuild/envconfig.py @@ -201,13 +201,13 @@ class MachineInfo: """ Machine is windows? """ - return self.system in {'windows', 'mingw'} + return self.system == 'windows' or 'mingw' in self.system def is_cygwin(self) -> bool: """ Machine is cygwin? """ - return self.system == 'cygwin' + return self.system.startswith('cygwin') def is_linux(self) -> bool: """