Properties is no longer mandatory in cross files so do not require it.

pull/649/head
Jussi Pakkanen 9 years ago
parent 88aafd363e
commit b072d72f94
  1. 4
      mesonbuild/environment.py

@ -723,14 +723,12 @@ def get_args_from_envvars(lang):
class CrossBuildInfo():
def __init__(self, filename):
self.config = {}
self.config = {'properties': {}}
self.parse_datafile(filename)
if 'target_machine' in self.config:
return
if not 'host_machine' in self.config:
raise mesonlib.MesonException('Cross info file must have either host or a target machine.')
if not 'properties' in self.config:
raise mesonlib.MesonException('Cross file is missing "properties".')
if not 'binaries' in self.config:
raise mesonlib.MesonException('Cross file is missing "binaries".')

Loading…
Cancel
Save