parallelize compilation targets and set make JOBS to cpu number

This commit is contained in:
weigoo 2021-10-15 10:03:53 +08:00
parent 5ed900b196
commit a076ac147a

View File

@ -916,7 +916,7 @@ Provides: java-%{javaver}-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{r
Name: java-%{javaver}-%{origin} Name: java-%{javaver}-%{origin}
Version: %{javaver}.%{updatever}.%{buildver} Version: %{javaver}.%{updatever}.%{buildver}
Release: 4 Release: 5
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons # java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
# and this change was brought into RHEL-4. java-1.5.0-ibm packages # and this change was brought into RHEL-4. java-1.5.0-ibm packages
# also included the epoch in their virtual provides. This created a # also included the epoch in their virtual provides. This created a
@ -1666,7 +1666,7 @@ EXTRA_ASFLAGS="${EXTRA_CFLAGS} -Wa,--generate-missing-build-notes=yes"
export EXTRA_CFLAGS EXTRA_ASFLAGS export EXTRA_CFLAGS EXTRA_ASFLAGS
for suffix in %{build_loop} ; do for suffix in %{build_loop} ; do
if [ "x$suffix" = "x" ] ; then (if [ "x$suffix" = "x" ] ; then
debugbuild=release debugbuild=release
else else
# change --something to something # change --something to something
@ -1714,7 +1714,7 @@ if echo $debugbuild | grep -q "debug" ; then
maketargets="%{debug_targets}" maketargets="%{debug_targets}"
fi fi
make \ make JOBS=%(/usr/bin/getconf _NPROCESSORS_ONLN 2> /dev/null || :) \
JAVAC_FLAGS=-g \ JAVAC_FLAGS=-g \
SCTP_WERROR= \ SCTP_WERROR= \
${maketargets} || ( pwd; find $top_dir_abs_path -name "hs_err_pid*.log" | xargs cat && false ) ${maketargets} || ( pwd; find $top_dir_abs_path -name "hs_err_pid*.log" | xargs cat && false )
@ -1747,7 +1747,9 @@ ln -s %{_datadir}/javazi-1.8/tzdb.dat $JAVA_HOME/jre/lib/tzdb.dat
# build cycles # build cycles
)&
done done
wait
%check %check
@ -2201,6 +2203,9 @@ require "copy_jdk_configs.lua"
%endif %endif
%changelog %changelog
* Fri Oct 15 2021 zhangweiguo <zhangweiguo2@huawei.com> - 1:1.8.0.302-b07.5
- parallelize compilation targets and set make JOBS to cpu number
* Sat Sep 18 2021 kuenking111 <wangkun49@huawei.com> - 1:1.8.0.302-b07.4 * Sat Sep 18 2021 kuenking111 <wangkun49@huawei.com> - 1:1.8.0.302-b07.4
- add 8183543-Aarch64-C2-compilation-often-fails-with-fail--last.patch - add 8183543-Aarch64-C2-compilation-often-fails-with-fail--last.patch