diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2019-10-21 10:38:58 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-10-22 22:32:34 +0300 |
commit | c6b512e64d55cd573067b8f1f84caa63005e973c (patch) | |
tree | 19196a4798278cc3486ce1317c5b4cb1371f6194 | |
parent | dea2c093d4925a0616e9c1f2aaf5352a2db36c2e (diff) | |
download | meson-c6b512e64d55cd573067b8f1f84caa63005e973c.zip meson-c6b512e64d55cd573067b8f1f84caa63005e973c.tar.gz meson-c6b512e64d55cd573067b8f1f84caa63005e973c.tar.bz2 |
mconf: Fix printing options when there is no compiler/project options
Closes: #6087
-rw-r--r-- | mesonbuild/mconf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index e5b3796..94393d1 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -224,12 +224,12 @@ class Conf: self.print_options('', {insert_build_prefix(k): o for k, o in self.coredata.builtins_per_machine.build.items()}) self.print_options('Backend options', self.coredata.backend_options) self.print_options('Base options', self.coredata.base_options) - self.print_options('Compiler options', host_compiler_options['']) + self.print_options('Compiler options', host_compiler_options.get('', {})) if show_build_options: - self.print_options('', build_compiler_options['']) + self.print_options('', build_compiler_options.get('', {})) self.print_options('Directories', dir_options) self.print_options('Testing options', test_options) - self.print_options('Project options', project_options['']) + self.print_options('Project options', project_options.get('', {})) for subproject in sorted(self.all_subprojects): if subproject == '': continue |