Use RHEL LTO flags in ELN builds
These constraints are needed primarily for RHEL and CS builders.
This commit is contained in:
parent
b2bda922a0
commit
7957a7652b
@ -335,6 +335,13 @@ rm test/CodeGen/profile-filter.c
|
|||||||
%global _lto_cflags %nil
|
%global _lto_cflags %nil
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%ifarch %{ix86}
|
||||||
|
# Linking libclang.so goes out of memory even with ThinLTO and a single link job.
|
||||||
|
%global _lto_cflags %nil
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%ifarch s390 s390x aarch64 %ix86 ppc64le
|
%ifarch s390 s390x aarch64 %ix86 ppc64le
|
||||||
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
|
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
|
||||||
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
||||||
|
Loading…
Reference in New Issue
Block a user