aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorOle André Vadla RavnÄs <oleavr@gmail.com>2020-04-09 21:09:05 +0000
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-05-13 15:51:54 +0000
commit859dc4255aa40611d323d1b22f70bb20c09f317d (patch)
tree15d74ebac23f689d762efdedf2c7cc788da5764e /mesonbuild/backend/backends.py
parentc4fa0fac3dd4f4451f73a50c3c523c8f83a3a6e1 (diff)
downloadmeson-859dc4255aa40611d323d1b22f70bb20c09f317d.zip
meson-859dc4255aa40611d323d1b22f70bb20c09f317d.tar.gz
meson-859dc4255aa40611d323d1b22f70bb20c09f317d.tar.bz2
Fix outdated cross-compilation checks
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index 2727abe..7f7c434 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -768,7 +768,7 @@ class Backend:
# E.g. an external verifier or simulator program run on a generated executable.
# Can always be run without a wrapper.
test_for_machine = MachineChoice.BUILD
- is_cross = not self.environment.machines.matches_build_machine(test_for_machine)
+ is_cross = self.environment.is_cross_build(test_for_machine)
if is_cross and self.environment.need_exe_wrapper():
exe_wrapper = self.environment.get_exe_wrapper()
else: