mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-28 02:34:52 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -205,6 +205,9 @@ cd llvm
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
-DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS -Wl,-z,cet-report=error" \
|
-DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS -Wl,-z,cet-report=error" \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?rhel} == 8
|
||||||
|
-DLLVM_RAM_PER_COMPILE_JOB=2048 \
|
||||||
|
%endif
|
||||||
%if %{with lto_build}
|
%if %{with lto_build}
|
||||||
%if 0%{?fedora} >= 41
|
%if 0%{?fedora} >= 41
|
||||||
-DLLVM_UNITTEST_LINK_FLAGS="-fno-lto"
|
-DLLVM_UNITTEST_LINK_FLAGS="-fno-lto"
|
||||||
|
|
Loading…
Reference in a new issue