Detect ObjC compilers on OSX.

This commit is contained in:
Jussi Pakkanen 2013-04-09 00:11:58 +03:00
parent 5465572c78
commit 0ae280ce77
1 changed files with 4 additions and 0 deletions

View File

@ -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):