Reduce memory usage of x86_64 builds
This commit is contained in:
parent
d64a218eff
commit
1ce38586f1
@ -23,8 +23,9 @@ Patch2: 0001-flang-Fix-build-with-gcc-11.patch
|
|||||||
# because mlir doesn't build on arm (yet)
|
# because mlir doesn't build on arm (yet)
|
||||||
ExcludeArch: armv7hl
|
ExcludeArch: armv7hl
|
||||||
|
|
||||||
# Avoid gcc reaching 4GB of memory
|
# Avoid gcc reaching 4GB of memory on 32-bit targets and also running out of
|
||||||
%ifarch %{ix86} s390x
|
# memory on builders with many CPUs.
|
||||||
|
%ifarch %{ix86} s390x x86_64
|
||||||
%global _lto_cflags %{nil}
|
%global _lto_cflags %{nil}
|
||||||
%global _smp_mflags -j1
|
%global _smp_mflags -j1
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user