mirror of
https://github.com/systemd/systemd.git
synced 2025-02-02 13:47:27 +03:00
test: do not run 'meson configure' if NO_BUILD is set
There is no build tree and packages are used, so it cannot work. Unlikely that static linking has been set for those builds anyway. Fixes https://github.com/systemd/systemd/issues/19955
This commit is contained in:
parent
5601400e17
commit
63878c52be
@ -1006,11 +1006,13 @@ create_empty_image() {
|
||||
fi
|
||||
|
||||
local size=500
|
||||
if meson configure "${BUILD_DIR:?}" | grep 'static-lib\|standalone-binaries' | awk '{ print $2 }' | grep -q 'true'; then
|
||||
size=$((size+=200))
|
||||
fi
|
||||
if meson configure "${BUILD_DIR:?}" | grep 'link-.*-shared' | awk '{ print $2 }' | grep -q 'false'; then
|
||||
size=$((size+=200))
|
||||
if [ -z "$NO_BUILD" ]; then
|
||||
if meson configure "${BUILD_DIR:?}" | grep 'static-lib\|standalone-binaries' | awk '{ print $2 }' | grep -q 'true'; then
|
||||
size=$((size+=200))
|
||||
fi
|
||||
if meson configure "${BUILD_DIR:?}" | grep 'link-.*-shared' | awk '{ print $2 }' | grep -q 'false'; then
|
||||
size=$((size+=200))
|
||||
fi
|
||||
fi
|
||||
if [[ "$STRIP_BINARIES" = "no" ]]; then
|
||||
size=$((4 * size))
|
||||
|
Loading…
x
Reference in New Issue
Block a user