From a70d6db069b6b9092c2ed2260cb60feeb7fc66a5 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 7 Feb 2023 22:59:16 +0100 Subject: [PATCH] turning the buildsystem --- chromium.spec | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/chromium.spec b/chromium.spec index 55c15740..7c055bc9 100644 --- a/chromium.spec +++ b/chromium.spec @@ -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