Skip to content

Commit 1869780

Browse files
oech3oech3
authored andcommitted
build-gnu.sh: Use multicall to reduce build time (no selinux)
1 parent 58ebeaf commit 1869780

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

util/build-gnu.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ else
104104
fi
105105
cd -
106106

107+
[ "${SELINUX_ENABLED}" != 1 ] && export MULTICALL=y # Reduce time to build
107108
# Pass the feature flags to make, which will pass them to cargo
108109
"${MAKE}" PROFILE="${UU_MAKE_PROFILE}" CARGOFLAGS="${CARGO_FEATURE_FLAGS}"
109110
# min test for SELinux
110111
[ "${SELINUX_ENABLED}" = 1 ] && touch g && "${UU_MAKE_PROFILE}"/stat -c%C g && rm g
111-
112+
[ "${MULTICALL}" = y ] && (cd "${UU_BUILD_DIR}" && for b in $(./coreutils --list); do cp -vf coreutils "$b"; done)
112113
cp "${UU_BUILD_DIR}/install" "${UU_BUILD_DIR}/ginstall" # The GNU tests rename this script before running, to avoid confusion with the make target
113114
# Create *sum binaries
114115
for sum in b2sum b3sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum; do

0 commit comments

Comments
 (0)