summaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-10-06 15:17:32 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2019-10-06 15:17:32 +0300
commit3acab5dcb59a777b2713e0ca921f6a562deef1b3 (patch)
tree86281e6a411142e253fa4914a945da9396cb4b2b /mesonbuild/environment.py
parent5bbea6be05c9740aedcd7f170c24a6b2c098cd01 (diff)
downloadmeson-crosscheck.tar.gz
Cross build is defined by the existance of a cross file.crosscheck
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 e5d041b48..03c65688f 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())