aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'environment.py')
-rw-r--r--environment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/environment.py b/environment.py
index cb8913a..a29e9e4 100644
--- a/environment.py
+++ b/environment.py
@@ -847,9 +847,9 @@ class Environment():
path = os.path.split(__file__)[0]
return os.path.join(path, 'depfixer.py')
- def detect_cpp_compiler(self):
+ def detect_cpp_compiler(self, want_cross):
evar = 'CXX'
- if self.is_cross_build():
+ if self.is_cross_build() and want_cross:
compilers = [self.cross_info['cpp']]
ccache = []
is_cross = True