diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-04-20 13:25:08 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-04-20 13:25:08 -0700 |
commit | 10c19e12062b4fecfada36138cd2c571559cdf2d (patch) | |
tree | 7e00db97fb3c5425929be2f8934822e4979bae29 | |
parent | e308f116cbaaf002551182adc2bd1284fafd89e5 (diff) | |
download | meson-10c19e12062b4fecfada36138cd2c571559cdf2d.zip meson-10c19e12062b4fecfada36138cd2c571559cdf2d.tar.gz meson-10c19e12062b4fecfada36138cd2c571559cdf2d.tar.bz2 |
mconf: print core options for subprojects
Looking in the right dictionary is pretty useful, actually.
-rw-r--r-- | mesonbuild/mconf.py | 6 |
1 files 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: |