aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index e5d041b..03c6568 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -611,7 +611,7 @@ class Environment:
self.first_invocation = True
def is_cross_build(self) -> bool:
- return not self.machines.matches_build_machine(MachineChoice.HOST)
+ return self.coredata.is_cross_build()
def dump_coredata(self):
return coredata.save(self.coredata, self.get_build_dir())