envconfig: make MachineInfo.is_windows and is_cygwin match mesonlib

The mesonlib versions are slightly more specific in what they accept.
pull/5857/head
Dylan Baker 5 years ago committed by Jussi Pakkanen
parent d3a7537346
commit fe645a0a9e
  1. 4
      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:
"""

Loading…
Cancel
Save