Update the parallel build flags

Up to -j4 is supported on x86 arches (upstream builds with -j4)
Leave the other arches out still since they are not proven to be reliable.
This commit is contained in:
Christopher Aillon 2011-01-25 11:15:09 -08:00
parent b51b2892ba
commit 3c6d6f9fe7

View File

@ -153,10 +153,13 @@ export PREFIX='%{_prefix}'
export LIBDIR='%{_libdir}'
MOZ_SMP_FLAGS=-j1
%ifnarch ppc ppc64 s390 s390x
# On x86 architectures, Mozilla can build up to 4 jobs at once in parallel,
# however builds tend to fail on other arches when building in parallel.
%ifarch %{ix86} x86_64
[ -z "$RPM_BUILD_NCPUS" ] && \
RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
[ "$RPM_BUILD_NCPUS" -gt 1 ] && MOZ_SMP_FLAGS=-j2
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
[ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j4
%endif
INTERNAL_GECKO=%{internal_version}