diff options
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index f1bd2e1..eb7189c 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -429,10 +429,9 @@ def detect_cpu(compilers: CompilersDict): return trial def detect_system(): - system = platform.system().lower() - if system.startswith('cygwin'): + if sys.platform == 'cygwin': return 'cygwin' - return system + return platform.system().lower() def detect_msys2_arch(): if 'MSYSTEM_CARCH' in os.environ: |