From 4c025cdf787c811662add62b4eb761ac207243e4 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 28 Jul 2020 13:14:21 -0600 Subject: [PATCH] Disable LTO on arm and i686 --- clang.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/clang.spec b/clang.spec index 7c310c4..e57411f 100644 --- a/clang.spec +++ b/clang.spec @@ -4,7 +4,7 @@ %global min_ver 0 %global patch_ver 0 #%%global rc_ver 6 -%global baserelease 8 +%global baserelease 9 %global clang_tools_binaries \ %{_bindir}/clang-apply-replacements \ @@ -275,6 +275,11 @@ pathfix.py -i %{__python3} -pn \ %build +# We run the builders out of memory on armv7 and i686 when LTO is enabled +%ifarch %{arm} i686 +%define _lto_cflags %{nil} +%endif + %if 0%{?__isa_bits} == 64 sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@/64/g' test/lit.cfg.py %else @@ -488,6 +493,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %cmake_build --target check-all || \ %endif %changelog +* Tue Jul 28 2020 Jeff Law - 10.0.0-9 +- Disable LTO on arm and i686 + * Mon Jul 27 2020 Fedora Release Engineering - 10.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild