From 0ae280ce77cae787b6cc809a7130d746a0bbd261 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 9 Apr 2013 00:11:58 +0300 Subject: Detect ObjC compilers on OSX. --- environment.py | 4 ++++ 1 file changed, 4 insertions(+) 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): -- cgit v1.1