Detect ObjC compilers on OSX.

pull/15/head
Jussi Pakkanen 12 years ago
parent 5465572c78
commit 0ae280ce77
  1. 4
      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):

Loading…
Cancel
Save