aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-08-10 12:06:03 -0700
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-08-20 18:57:19 +0200
commit24284fd9d51323e234e490bb87eeaea356801581 (patch)
tree904fa3027e39cab482549bddab75e6a27557910a
parenta5b6b35edbe7019c641b87afb47cfca172360f95 (diff)
downloadmeson-24284fd9d51323e234e490bb87eeaea356801581.zip
meson-24284fd9d51323e234e490bb87eeaea356801581.tar.gz
meson-24284fd9d51323e234e490bb87eeaea356801581.tar.bz2
backend/backends: Add verbose to ExecutableSerialisiation initializer
There are cases in the backend like this: ```python e = ExecutableSerialisation(...) e.verbose = v ``` setting it from the initializer is cleaner.
-rw-r--r--mesonbuild/backend/backends.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index c8f9684..5749a8c 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -160,6 +160,7 @@ class ExecutableSerialisation:
capture: T.Optional[bool] = None,
feed: T.Optional[bool] = None,
tag: T.Optional[str] = None,
+ verbose: bool = False,
) -> None:
self.cmd_args = cmd_args
self.env = env
@@ -172,7 +173,7 @@ class ExecutableSerialisation:
self.feed = feed
self.pickled = False
self.skip_if_destdir = False
- self.verbose = False
+ self.verbose = verbose
self.subproject = ''
self.tag = tag