From 5ed478ba38bace93fc5041c02207b771c3fba6df Mon Sep 17 00:00:00 2001 From: Chenxi Mao Date: Wed, 7 Jun 2023 17:05:01 +0800 Subject: [PATCH] Disable LTO as this causes crash if gcc lto enabled Change-Id: Ied12e25562fdac39354ade82b1dca536fabadbab Signed-off-by: Chenxi Mao (cherry picked from commit 6036c12086a11d25173efd96dc24ecb2608c51d0) --- llvm.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index ff36195..86cd273 100644 --- a/llvm.spec +++ b/llvm.spec @@ -24,9 +24,12 @@ %global build_install_prefix %{buildroot}%{install_prefix} %global llvm_triple %{_host} +# Disable LTO as this causes crash if gcc lto enabled. +%define _lto_cflags %{nil} + Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver} -Release: 1 +Release: 2 Summary: The Low Level Virtual Machine License: NCSA @@ -318,6 +321,9 @@ fi %{_libdir}/%{name}/lib/libLLVMTestingSupport.a %changelog +* Wed Jun 7 2023 Chenxi Mao - 15.0.7-2 +- Disable LTO as this causes crash if gcc lto enabled. + * Mon Feb 20 2023 Chenxi Mao - 15.0.7-1 - Upgrade to 15.0.7. -- Gitee