1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00

mkosi.build: print important build commands

This undoes the effect of 1394a3ec35 partially.
We print the fairly verbose output of the build commands, so let's also
print the commands themselves. This makes it much easier to understand what
is going on.

(The style was copied from other scripts where we do 'set -x' for one command.)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-05-08 15:03:24 +02:00
parent 385fb4e323
commit 1bcad2de7c

View File

@ -174,10 +174,10 @@ if [ ! -f "$BUILDDIR"/build.ninja ]; then
)
fi
meson setup "$BUILDDIR" "${CONFIGURE_OPTS[@]}"
( set -x; meson setup "$BUILDDIR" "${CONFIGURE_OPTS[@]}" )
fi
ninja -C "$BUILDDIR" "$@"
( set -x; ninja -C "$BUILDDIR" "$@" )
if [ "$WITH_TESTS" = 1 ]; then
if [ -n "$SANITIZERS" ]; then
export ASAN_OPTIONS="$MKOSI_ASAN_OPTIONS"
@ -187,7 +187,7 @@ if [ "$WITH_TESTS" = 1 ]; then
TIMEOUT_MULTIPLIER=1
fi
meson test -C "$BUILDDIR" --print-errorlogs --timeout-multiplier=$TIMEOUT_MULTIPLIER
( set -x; meson test -C "$BUILDDIR" --print-errorlogs --timeout-multiplier=$TIMEOUT_MULTIPLIER )
fi
meson install -C "$BUILDDIR" --quiet --no-rebuild --only-changed
( set -x; meson install -C "$BUILDDIR" --quiet --no-rebuild --only-changed )