diff options
-rw-r--r-- | mesonbuild/modules/hotdoc.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/modules/hotdoc.py b/mesonbuild/modules/hotdoc.py index 5064803..02e07a9 100644 --- a/mesonbuild/modules/hotdoc.py +++ b/mesonbuild/modules/hotdoc.py @@ -76,7 +76,8 @@ class HotdocTargetBuilder: return if isinstance(value, bool): - self.cmd.append(option) + if value: + self.cmd.append(option) elif isinstance(value, list): # Do not do anything on empty lists if value: @@ -308,6 +309,9 @@ class HotdocTargetBuilder: for path in self.include_paths.keys(): self.cmd.extend(['--include-path', path]) + + if self.state.environment.coredata.get_builtin_option('werror'): + self.cmd.append('--fatal-warning') self.generate_hotdoc_config() target_cmd = self.build_command + ["--internal", "hotdoc"] + \ |