aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 52f5752..311b11c 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -826,9 +826,9 @@ class CrossBuildInfo():
self.parse_datafile(filename)
if 'target_machine' in self.config:
return
- if not 'host_machine' in self.config:
+ if 'host_machine' not in self.config:
raise mesonlib.MesonException('Cross info file must have either host or a target machine.')
- if not 'binaries' in self.config:
+ if 'binaries' not in self.config:
raise mesonlib.MesonException('Cross file is missing "binaries".')
def ok_type(self, i):