aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xenvironment.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/environment.py b/environment.py
index 3b78684..6081208 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):