From 26e205293a590aa700711198fc4ec16727e567b2 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 24 Apr 2019 13:05:26 -0400 Subject: hotdoc: Handle werror --- mesonbuild/modules/hotdoc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesonbuild/modules/hotdoc.py b/mesonbuild/modules/hotdoc.py index 6b3eb5f..02e07a9 100644 --- a/mesonbuild/modules/hotdoc.py +++ b/mesonbuild/modules/hotdoc.py @@ -309,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"] + \ -- cgit v1.1