]> git.pld-linux.org Git - packages/thunderbird.git/commitdiff
sync parallel jobs limit logic with firefox
authorJan Palus <atler@pld-linux.org>
Sun, 5 Jul 2020 10:53:28 +0000 (12:53 +0200)
committerJan Palus <atler@pld-linux.org>
Sun, 5 Jul 2020 10:53:28 +0000 (12:53 +0200)
thunderbird.spec

index aac379655dbb015e7b4ae2fc38f3d00c9bfa567f..f6bc0c41923c8bd29b31c185d8e8f6b8f2d9dbba 100644 (file)
@@ -1366,12 +1366,14 @@ EOF
 %if ! %{with clang}
 # On x86_64 architectures, Mozilla can build up to 4 jobs at once in parallel,
 # however builds tend to fail on other arches when building in parallel.
-RPM_BUILD_NR_THREADS=1
+MOZ_PARALLEL_BUILD=1
 %ifarch %{x8664}
-jobs=$(echo %{_smp_mflags} | cut -dj -f2)
-[ -n "$jobs" -a "$jobs" -gt 4 ] && RPM_BUILD_NR_THREADS=4 || RPM_BUILD_NR_THREADS="$jobs"
+jobs="%{__jobs}"
+[ -n "$jobs" -a "$jobs" -gt 4 ] && MOZ_PARALLEL_BUILD=4 || MOZ_PARALLEL_BUILD="$jobs"
 %endif
-export MOZ_MAKE_FLAGS="-j${RPM_BUILD_NR_THREADS}"
+export MOZ_PARALLEL_BUILD
+%else
+%{?__jobs:export MOZ_PARALLEL_BUILD="%__jobs"}
 %endif
 
 AUTOCONF=/usr/bin/autoconf2_13 ./mach build
This page took 0.090569 seconds and 4 git commands to generate.