[xulrunner] Update the parallel build flags

Christopher Aillon caillon at fedoraproject.org
Tue Jan 25 20:13:41 UTC 2011


commit e8acd9ae6821ad0137b63a955e73e901b937d39e
Author: Christopher Aillon <caillon at redhat.com>
Date:   Tue Jan 25 08:50:56 2011 -0800

    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.

 xulrunner.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/xulrunner.spec b/xulrunner.spec
index 4775ce6..1df6212 100644
--- a/xulrunner.spec
+++ b/xulrunner.spec
@@ -211,10 +211,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
 
 export LDFLAGS="-Wl,-rpath,${MOZ_APP_DIR}"


More information about the scm-commits mailing list