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:
parent
61f67fb135
commit
690b69906a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user