Fix objc/objpp detector funcs.

pull/15/head
Jussi Pakkanen 12 years ago
parent 6eb4474349
commit 30c9787cf7
  1. 10
      environment.py

@ -896,8 +896,8 @@ class Environment():
return VisualStudioCPPCompiler([compiler], version, is_cross, exe_wrap)
raise EnvironmentException('Unknown compiler(s) "' + ', '.join(compilers) + '"')
def detect_objc_compiler(self):
if self.is_cross_build():
def detect_objc_compiler(self, want_cross):
if self.is_cross_build() and want_cross:
exelist = [self.cross_info['objc']]
is_cross = True
exe_wrap = self.cross_info.get('exe_wrapper', None)
@ -924,9 +924,9 @@ class Environment():
return GnuObjCCompiler(exelist, version, is_cross, exe_wrap)
raise EnvironmentException('Unknown compiler "' + ' '.join(exelist) + '"')
def detect_objcpp_compiler(self):
if self.is_cross_build():
exelist = [self.cross_info['objc']]
def detect_objcpp_compiler(self, want_cross):
if self.is_cross_build() and want_cross:
exelist = [self.cross_info['objcpp']]
is_cross = True
exe_wrap = self.cross_info.get('exe_wrapper', None)
else:

Loading…
Cancel
Save