From 690b69906ab1c13c39c37d30ff6d171493a6ba77 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 16 Jul 2024 15:21:53 +0000 Subject: [PATCH] Set LLVM_RAM_PER_COMPILE_JOB on RHEL 8 RHEL 8 uses gcc instead of clang as the host compiler, which uses more memory. --- build.spec.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.spec.inc b/build.spec.inc index 29d51d9..13cc33b 100644 --- a/build.spec.inc +++ b/build.spec.inc @@ -205,6 +205,9 @@ cd llvm %ifarch x86_64 -DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS -Wl,-z,cet-report=error" \ %endif +%if 0%{?rhel} == 8 + -DLLVM_RAM_PER_COMPILE_JOB=2048 \ +%endif %if %{with lto_build} %if 0%{?fedora} >= 41 -DLLVM_UNITTEST_LINK_FLAGS="-fno-lto"