diff --git a/environment.py b/environment.py index 3b78684c7..608120829 100755 --- a/environment.py +++ b/environment.py @@ -423,6 +423,8 @@ class Environment(): if (out.startswith('cc ') or out.startswith('gcc')) and \ 'Free Software Foundation' in out: return GnuObjCCompiler(exelist) + if 'apple' in out and 'Free Software Foundation' in out: + return GnuObjCCompiler(exelist) raise EnvironmentException('Unknown compiler "' + ' '.join(exelist) + '"') def detect_objcxx_compiler(self): @@ -436,6 +438,8 @@ class Environment(): if (out.startswith('c++ ') or out.startswith('g++')) and \ 'Free Software Foundation' in out: return GnuObjCXXCompiler(exelist) + if 'apple' in out and 'Free Software Foundation' in out: + return GnuObjCXXCompiler(exelist) raise EnvironmentException('Unknown compiler "' + ' '.join(exelist) + '"') def detect_static_linker(self):