From 8fa7f3a9c32c7fd369069725534cb7cc218affd8 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 20 Apr 2021 13:25:08 -0700 Subject: mconf: print core options for subprojects Looking in the right dictionary is pretty useful, actually. --- mesonbuild/mconf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index c458115..7a469cb 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -228,8 +228,10 @@ class Conf: if subproject == '': continue self.add_section('Subproject ' + subproject) - if subproject in core_options: - self.print_options('Core options', core_options[subproject]) + if subproject in host_core_options: + self.print_options('Core options', host_core_options[subproject]) + if subproject in build_core_options and show_build_options: + self.print_options('', build_core_options[subproject]) if subproject in host_compiler_options: self.print_options('Compiler options', host_compiler_options[subproject]) if subproject in build_compiler_options and show_build_options: -- cgit v1.1