Set LLVM_RAM_PER_COMPILE_JOB on RHEL 8

RHEL 8 uses gcc instead of clang as the host compiler, which
uses more memory.
This commit is contained in:
Nikita Popov 2024-07-16 15:21:53 +00:00 committed by Timm Bäder
parent 61f67fb135
commit 690b69906a

View file

@ -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"