aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-04-20 13:25:08 -0700
committerXavier Claessens <xclaesse@gmail.com>2021-04-20 17:43:24 -0400
commit8fa7f3a9c32c7fd369069725534cb7cc218affd8 (patch)
tree7e00db97fb3c5425929be2f8934822e4979bae29
parente308f116cbaaf002551182adc2bd1284fafd89e5 (diff)
downloadmeson-8fa7f3a9c32c7fd369069725534cb7cc218affd8.zip
meson-8fa7f3a9c32c7fd369069725534cb7cc218affd8.tar.gz
meson-8fa7f3a9c32c7fd369069725534cb7cc218affd8.tar.bz2
mconf: print core options for subprojects
Looking in the right dictionary is pretty useful, actually.
-rw-r--r--mesonbuild/mconf.py6
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: