aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2019-04-24 12:55:51 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2019-04-24 21:55:42 +0300
commit083a53815cdd59ad4b3ef93d07b5aac28823eb60 (patch)
tree174d7f2870d557955ff89de625c5ebf6d13e775f
parentadd821db64b3c1fd7568736aaa67de53ad382eb4 (diff)
downloadmeson-083a53815cdd59ad4b3ef93d07b5aac28823eb60.zip
meson-083a53815cdd59ad4b3ef93d07b5aac28823eb60.tar.gz
meson-083a53815cdd59ad4b3ef93d07b5aac28823eb60.tar.bz2
hotdoc: Take into account boolean value to pass flag like arguments
-rw-r--r--mesonbuild/modules/hotdoc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/modules/hotdoc.py b/mesonbuild/modules/hotdoc.py
index 5064803..6b3eb5f 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: