Enable parallel builds for aarch64

Beyond making the builds faster, this also appears to fix the build on
aarch64 (libmozgtk.so not getting built) for reasons unknown.

https://bugzilla.redhat.com/show_bug.cgi?id=1872111
This commit is contained in:
Kalev Lember 2020-09-23 17:52:35 +02:00
parent c8a56b17a2
commit bd0f865426

View File

@ -630,7 +630,7 @@ MOZ_SMP_FLAGS=-j1
RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
%endif
%ifarch x86_64 ppc ppc64 ppc64le %{arm}
%ifarch x86_64 ppc ppc64 ppc64le %{arm} aarch64
[ -z "$RPM_BUILD_NCPUS" ] && \
RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2