diff options
Diffstat (limited to 'mesonbuild/mconf.py')
-rw-r--r-- | mesonbuild/mconf.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index 14eddf5..ee4dbf8 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -122,6 +122,9 @@ class Conf: (k, v) = o.split('=', 1) if coredata.is_builtin_option(k): self.coredata.set_builtin_option(k, v) + elif k in self.coredata.backend_options: + tgt = self.coredata.backend_options[k] + tgt.set_value(v) elif k in self.coredata.user_options: tgt = self.coredata.user_options[k] tgt.set_value(v) @@ -163,6 +166,16 @@ class Conf: 'choices': coredata.get_builtin_option_choices(key)}) self.print_aligned(carr) print('') + bekeys = sorted(self.coredata.backend_options.keys()) + if not bekeys: + print(' No backend options\n') + else: + bearr = [] + for k in bekeys: + o = self.coredata.backend_options[k] + bearr.append({'name': k, 'descr': o.description, 'value': o.value, 'choices': ''}) + self.print_aligned(bearr) + print('') print('Base options:') okeys = sorted(self.coredata.base_options.keys()) if not okeys: |