turning the buildsystem
This commit is contained in:
parent
ec43a3a86c
commit
a70d6db069
@ -12,26 +12,20 @@
|
||||
%undefine _package_note_file
|
||||
%endif
|
||||
|
||||
# Require 2 GB of RAM per CPU core
|
||||
# %%constrain_build -m 2048
|
||||
|
||||
# set default numjobs for the koji build
|
||||
%ifarch aarch64
|
||||
%if %{_smp_build_ncpus} >= 8
|
||||
%global numjobs 8
|
||||
%endif
|
||||
%if %{_smp_build_ncpus} >= 16
|
||||
%global numjobs 16
|
||||
%endif
|
||||
%if %{_smp_build_ncpus} >= 32
|
||||
%global numjobs 32
|
||||
%endif
|
||||
%if %{_smp_build_ncpus} >= 64
|
||||
%global numjobs 64
|
||||
%endif
|
||||
%else
|
||||
%global numjobs %{_smp_build_ncpus}
|
||||
%endif
|
||||
|
||||
# This flag is so I can build things very fast on a giant system.
|
||||
# Enabling this in koji causes aarch64 builds to timeout indefinitely.
|
||||
%global use_all_cpus 0
|
||||
|
||||
%if %{use_all_cpus}
|
||||
%global numjobs %{_smp_build_ncpus}
|
||||
%endif
|
||||
|
||||
# official builds have less debugging and go faster... but we have to shut some things off.
|
||||
%global official_build 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user