aboutsummaryrefslogtreecommitdiff
path: root/lint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lint.sh')
-rwxr-xr-xlint.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lint.sh b/lint.sh
index 1b879e7..545032a 100755
--- a/lint.sh
+++ b/lint.sh
@@ -101,6 +101,8 @@ printf '%s\n' "${CONTAINER_PATHS[@]}" | \
trap "rm -rf $TIDY_DIR" EXIT
sed "s| -mno-direct-extern-access||g" /src/build/compile_commands.json \
> "$TIDY_DIR/compile_commands.json"
- xargs -P '"${JOBS}"' -I{} clang-tidy '"${FIX_FLAG[*]:-}"' \
+ # stdbuf -oL forces line-buffered stdout so output flushes through
+ # the podman pipe instead of being held until container exit.
+ xargs -P '"${JOBS}"' -I{} stdbuf -oL clang-tidy '"${FIX_FLAG[*]:-}"' \
-p "$TIDY_DIR" --quiet {}
'