envconfig: mingw is also Windows

Also change the same idiom for Darwin to use a set().
pull/5339/head
Ross Burton 6 years ago committed by Dylan Baker
parent ed109801c6
commit ae9a6417fe
  1. 4
      mesonbuild/envconfig.py

@ -198,7 +198,7 @@ class MachineInfo:
""" """
Machine is windows? Machine is windows?
""" """
return self.system == 'windows' return self.system in {'windows', 'mingw'}
def is_cygwin(self) -> bool: def is_cygwin(self) -> bool:
""" """
@ -216,7 +216,7 @@ class MachineInfo:
""" """
Machine is Darwin (iOS/OS X)? Machine is Darwin (iOS/OS X)?
""" """
return self.system in ('darwin', 'ios') return self.system in {'darwin', 'ios'}
def is_android(self) -> bool: def is_android(self) -> bool:
""" """

Loading…
Cancel
Save