From 4b0c817bb69c9dc49c3600471ac725f4b09b9ef1 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 16 Feb 2021 12:18:51 -0800 Subject: [PATCH] mconf: only print correct options in the correct sections A predicate in two comprehensions was dropped, in what looks like a rebase error on my part. With the predicate added things work correctly. Fixes: #8344 --- mesonbuild/mconf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index 5233d888c..9b2f5b650 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -216,8 +216,8 @@ class Conf: self.print_options('Core options', host_core_options['']) if show_build_options: self.print_options('', build_core_options['']) - self.print_options('Backend options', {str(k): v for k, v in self.coredata.options.items()}) - self.print_options('Base options', {str(k): v for k, v in self.coredata.options.items()}) + self.print_options('Backend options', {str(k): v for k, v in self.coredata.options.items() if k.is_backend()}) + self.print_options('Base options', {str(k): v for k, v in self.coredata.options.items() if k.is_base()}) self.print_options('Compiler options', host_compiler_options.get('', {})) if show_build_options: self.print_options('', build_compiler_options.get('', {}))