From 3a2334be1b317603431cb3461e8030557bcae708 Mon Sep 17 00:00:00 2001 From: Noam Meltzer Date: Sun, 12 Jun 2016 22:48:43 +0300 Subject: be more resilient for identifying gcc compilers --- mesonbuild/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(): -- cgit v1.1