aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-06-17 18:12:20 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2020-06-18 17:39:43 +0300
commite191cbf6e990caa0e912996977584909aab21da8 (patch)
tree999476b2e5b73da4a3eb53fa7041701b3c1a521f
parent804cefc94cd334fccccdf3015eb0b3f589f87515 (diff)
downloadmeson-e191cbf6e990caa0e912996977584909aab21da8.zip
meson-e191cbf6e990caa0e912996977584909aab21da8.tar.gz
meson-e191cbf6e990caa0e912996977584909aab21da8.tar.bz2
mconf: Fix regression when printing all options
This is a regression introduced by #5489
-rw-r--r--mesonbuild/mconf.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py
index 05e9518..2e03cab 100644
--- a/mesonbuild/mconf.py
+++ b/mesonbuild/mconf.py
@@ -97,9 +97,9 @@ class Conf:
else:
print('{0:{width[0]}} {1:{width[1]}} {3}'.format(*line, width=col_widths))
- def split_options_per_subproject(self, options_iter):
+ def split_options_per_subproject(self, options):
result = {}
- for k, o in options_iter:
+ for k, o in options.items():
subproject = ''
if ':' in k:
subproject, optname = k.split(':')
@@ -211,15 +211,15 @@ class Conf:
return 'build.' + k
return k[:idx + 1] + 'build.' + k[idx + 1:]
- core_options = self.split_options_per_subproject(core_options.items())
+ core_options = self.split_options_per_subproject(core_options)
host_compiler_options = self.split_options_per_subproject(
- self.coredata.flatten_lang_iterator(
- self.coredata.compiler_options.host.items()))
+ dict(self.coredata.flatten_lang_iterator(
+ self.coredata.compiler_options.host.items())))
build_compiler_options = self.split_options_per_subproject(
- self.coredata.flatten_lang_iterator(
+ dict(self.coredata.flatten_lang_iterator(
(insert_build_prefix(k), o)
- for k, o in self.coredata.compiler_options.build.items()))
- project_options = self.split_options_per_subproject(self.coredata.user_options.items())
+ for k, o in self.coredata.compiler_options.build.items())))
+ project_options = self.split_options_per_subproject(self.coredata.user_options)
show_build_options = self.default_values_only or self.build.environment.is_cross_build()
self.add_section('Main project options')