- Fix the macros to define default value if _threads are not defined
to fallback to amount of CPUs OBS-URL: https://build.opensuse.org/package/show/network:chromium/memory-constraints?expand=0&rev=12
This commit is contained in:
parent
3dc909e9eb
commit
d1960e366c
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 7 14:57:25 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Fix the macros to define default value if _threads are not defined
|
||||
to fallback to amount of CPUs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 6 13:41:22 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
|
@ -21,6 +21,6 @@
|
||||
test "$_threads" -gt "$max_jobs" && _threads="$max_jobs" && echo "Warning: Reducing number of jobs to $max_jobs because of memory limits" \
|
||||
test "$_threads" -le 0 && $_threads=1 && echo "Warning: Do not use the parallel build at all because of memory limits" \
|
||||
fi \
|
||||
%global jobs $_threads \
|
||||
%global _smp_mflags -j$_threads \
|
||||
%global jobs $([[ -n $_threads ]] && echo $_threads || echo "`/usr/bin/getconf _NPROCESSORS_ONLN`") \
|
||||
%global _smp_mflags $([[ -n $_threads ]] && echo "-j$_threads" || echo "-j`/usr/bin/getconf _NPROCESSORS_ONLN`") \
|
||||
%{nil}
|
||||
|
Loading…
x
Reference in New Issue
Block a user