diff options
author | Noam Meltzer <tsnoam@gmail.com> | 2016-06-12 22:48:43 +0300 |
---|---|---|
committer | Noam Meltzer <tsnoam@gmail.com> | 2016-06-16 20:52:03 +0300 |
commit | 3a2334be1b317603431cb3461e8030557bcae708 (patch) | |
tree | b1af03f3505628917636f88fd9c754877d7d48c9 | |
parent | 038e575d7802bf27e3e0d792c77522f4e13e4ca4 (diff) | |
download | meson-3a2334be1b317603431cb3461e8030557bcae708.zip meson-3a2334be1b317603431cb3461e8030557bcae708.tar.gz meson-3a2334be1b317603431cb3461e8030557bcae708.tar.bz2 |
be more resilient for identifying gcc compilers
-rw-r--r-- | mesonbuild/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index fcd4bdb..e1e4613 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -246,7 +246,7 @@ class Environment(): version = 'unknown version' if 'apple' in out and 'Free Software Foundation' in out: return GnuCCompiler(ccache + [compiler], version, GCC_OSX, is_cross, exe_wrap) - if (out.startswith('cc') or 'gcc' in out) and \ + if (out.startswith('cc') or 'gcc' in out.lower()) and \ 'Free Software Foundation' in out: lowerout = out.lower() if 'mingw' in lowerout or 'msys' in lowerout or 'mingw' in compiler.lower(): |