]> git.pld-linux.org Git - packages/firefox.git/commitdiff
- shorter form
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 26 Jan 2020 01:25:15 +0000 (02:25 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 26 Jan 2020 01:25:15 +0000 (02:25 +0100)
firefox.spec

index a09070a6066ecccca18ef1baffa728fd9cf425f8..f81b3bf9ff097666305b0e35a4782b8455cc5217 100644 (file)
@@ -2130,11 +2130,10 @@ 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.
 %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=$(echo %{_smp_mflags} | cut -dj -f2)
-%ifarch %{x8864}
-[ -n "RPM_BUILD_NR_THREADS" -a "$RPM_BUILD_NR_THREADS" -gt 4 ] && RPM_BUILD_NR_THREADS=4
-%else
 RPM_BUILD_NR_THREADS=1
 RPM_BUILD_NR_THREADS=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"
 %endif
 export MOZ_MAKE_FLAGS="-j${RPM_BUILD_NR_THREADS}"
 %endif
 %endif
 export MOZ_MAKE_FLAGS="-j${RPM_BUILD_NR_THREADS}"
 %endif
This page took 0.394258 seconds and 4 git commands to generate.