summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2019-10-21 10:38:58 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2019-10-21 10:39:21 -0400
commit6922b8c064e885e96d21473d8d3fe283ac085b74 (patch)
tree513a2eba4e789af1fdf5833a14b918676655883d
parent212a05b87ed34f921dfd07142305389dbfa9bb7d (diff)
downloadmeson-6922b8c064e885e96d21473d8d3fe283ac085b74.tar.gz
mconf: Fix printing options when there is no compiler/project options
Closes: #6087
-rw-r--r--mesonbuild/mconf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py
index e5b37961e..94393d150 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