mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-22 18:16:28 +00:00
cargo_wrapper: Write to log with line-buffering
So we get log output while cargo is running, not just when it completes Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1031>
This commit is contained in:
parent
9ee7118bf6
commit
f94e422b61
1 changed files with 3 additions and 3 deletions
|
@ -67,9 +67,9 @@ def generate_depfile_for(fpath):
|
|||
|
||||
if __name__ == "__main__":
|
||||
opts = PARSER.parse_args()
|
||||
|
||||
logfile = open(opts.root_dir / 'meson-logs' /
|
||||
f'{opts.src_dir.name}-cargo-wrapper.log', 'w')
|
||||
logdir = opts.root_dir / 'meson-logs'
|
||||
logfile_path = logdir / f'{opts.src_dir.name}-cargo-wrapper.log'
|
||||
logfile = open(logfile_path, mode='w', buffering=1)
|
||||
|
||||
print(opts, file=logfile)
|
||||
cargo_target_dir = opts.build_dir / 'target'
|
||||
|
|
Loading…
Reference in a new issue