Skip to content

Commit

Permalink
Revert "release.sh: Add -jN to make release"
Browse files Browse the repository at this point in the history
The release-building code is not fully parallel-safe yet.

This reverts commit 9c1bad2.

Reported by:	jrtc27
  • Loading branch information
cperciva committed Jan 29, 2024
1 parent 3be59ad commit 7b707e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,9 @@ env_setup() {
SRC_CONF="/dev/null"

# The number of make(1) jobs, defaults to the number of CPUs available
# for buildworld, and half of number of CPUs available for buildkernel
# and 'make release'.
# for buildworld, and half of number of CPUs available for buildkernel.
WORLD_FLAGS="-j$(sysctl -n hw.ncpu)"
KERNEL_FLAGS="-j$(( $(( $(sysctl -n hw.ncpu) + 1 )) / 2))"
RELEASE_FLAGS="-j$(( $(( $(sysctl -n hw.ncpu) + 1 )) / 2))"

MAKE_FLAGS="-s"

Expand Down Expand Up @@ -192,7 +190,7 @@ env_check() {
${CONF_FILES}"
RELEASE_KMAKEFLAGS="${MAKE_FLAGS} ${KERNEL_FLAGS} \
KERNCONF=\"${KERNEL}\" ${ARCH_FLAGS} ${CONF_FILES}"
RELEASE_RMAKEFLAGS="${ARCH_FLAGS} ${RELEASE_FLAGS} \
RELEASE_RMAKEFLAGS="${ARCH_FLAGS} \
KERNCONF=\"${KERNEL}\" ${CONF_FILES} ${SRCPORTS} \
WITH_DVD=${WITH_DVD} WITH_VMIMAGES=${WITH_VMIMAGES} \
WITH_CLOUDWARE=${WITH_CLOUDWARE} XZ_THREADS=${XZ_THREADS}"
Expand Down

0 comments on commit 7b707e7

Please sign in to comment.