aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--environment.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/environment.py b/environment.py
index 58b4009..e6bd8c6 100644
--- a/environment.py
+++ b/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: