diff options
author | Declan Qian <declanqian@gmail.com> | 2022-01-09 13:16:12 +0800 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2022-01-12 21:22:22 +0530 |
commit | bc8c1f578f635d870d0f03c0a34750212ac4287e (patch) | |
tree | b0e96ade94b3c34391854281bc30f42f305845bd /mesonbuild/backend/ninjabackend.py | |
parent | 71540d184120e66796923f7056c478fe9e79444e (diff) | |
download | meson-bc8c1f578f635d870d0f03c0a34750212ac4287e.zip meson-bc8c1f578f635d870d0f03c0a34750212ac4287e.tar.gz meson-bc8c1f578f635d870d0f03c0a34750212ac4287e.tar.bz2 |
ninja backend: Fix custom_target() console: kwarg when using env
When a custom_target() uses an env, meson uses a wrapper
script to run the executable. This breaks the console: kwarg
because the wrapper script buffers the output. Fix it by setting
the verbose flag which will not buffer output.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index b6621c9..ed1fe8c 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -1004,7 +1004,8 @@ class NinjaBackend(backends.Backend): extra_bdeps=target.get_transitive_build_target_deps(), capture=ofilenames[0] if target.capture else None, feed=srcs[0] if target.feed else None, - env=target.env) + env=target.env, + verbose=target.console) if reason: cmd_type = f' (wrapped by meson {reason})' else: |