diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2019-04-24 13:05:26 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-04-24 21:55:42 +0300 |
commit | 26e205293a590aa700711198fc4ec16727e567b2 (patch) | |
tree | 06664db374bbb08958b934347928b1bb58dcaff1 | |
parent | 083a53815cdd59ad4b3ef93d07b5aac28823eb60 (diff) | |
download | meson-26e205293a590aa700711198fc4ec16727e567b2.zip meson-26e205293a590aa700711198fc4ec16727e567b2.tar.gz meson-26e205293a590aa700711198fc4ec16727e567b2.tar.bz2 |
hotdoc: Handle werror
-rw-r--r-- | mesonbuild/modules/hotdoc.py | 3 |
1 files changed, 3 insertions, 0 deletions
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"] + \ |