1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

. Respect MAKE_JOB_NUMBERS and use that to set up the number of HotSpot

make jobs.  If not, fall back to the number of CPUs.

  Only the HotSpot part of the build is safe to parallelise, so mark the
  port as MAKE_JOBS_UNSAFE.
This commit is contained in:
Greg Lewis 2010-09-26 18:40:45 +00:00
parent bfbf1b510c
commit 04143d2087
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=261896

View File

@ -42,6 +42,7 @@ SUB_LIST+= JRE_HOME=${PREFIX}/jdk${JDK_VERSION}/jre \
WRKSRC= ${WRKDIR}/control/make
USE_ZIP= YES
MAKE_JOBS_UNSAFE= yes
JRL_SRCFILE= jdk-${JDK_MAJOR_VERSION}u${JDK_UPDATE_VERSION}-fcs-src-b${JDK_BUILD_NUMBER}-jrl-${JDK_BUILD_DATE}.jar
JRL_BINFILE= jdk-${JDK_MAJOR_VERSION}u${JDK_UPDATE_VERSION}-fcs-bin-b${JDK_BUILD_NUMBER}-jrl-${JDK_BUILD_DATE}.jar
@ -144,12 +145,13 @@ MAKE_ENV+= SKIP_DEBUG_BUILD="false"
MAKE_ENV+= DONT_ENABLE_IPV6="YES"
.endif
.if defined(HOTSPOT_BUILD_JOBS)
MAKE_ENV+= HOTSPOT_BUILD_JOBS="${HOTSPOT_BUILD_JOBS}"
.if !defined(DISABLE_MAKE_JOBS)
.if defined(MAKE_JOBS_NUMBER)
BUILD_JOBS_NUMBER= ${MAKE_JOBS_NUMBER}
.else
BUILD_JOBS_NUMBER= `${SYSCTL} -n kern.smp.cpus`
.endif
.if defined(PARALLEL_BUILD_JOBS)
MAKE_ENV+= ALT_PARALLEL_BUILD_JOBS="${PARALLEL_BUILD_JOBS}"
MAKE_ENV+= HOTSPOT_BUILD_JOBS=${BUILD_JOBS_NUMBER}
.endif
ALL_TARGET= all