Disable LTO on i686 due to OOM

Resolves: rhbz#2188418
This commit is contained in:
Nikita Popov 2023-06-06 16:23:02 +02:00
parent 9548a24ba0
commit 333f785e91
1 changed files with 9 additions and 1 deletions

View File

@ -4,7 +4,7 @@
Name: lldb
Version: %{lldb_version}
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Next generation high-performance debugger
License: Apache-2.0 WITH LLVM-exception OR NCSA
@ -66,6 +66,11 @@ The package contains the LLDB Python module.
%build
%ifarch %ix86
# Linking liblldb.so goes out of memory even with ThinLTO and a single link job.
%global _lto_cflags %nil
%endif
%cmake -GNinja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_SKIP_RPATH:BOOL=ON \
@ -127,6 +132,9 @@ rm -f %{buildroot}%{python3_sitearch}/six.*
%{python3_sitearch}/lldb
%changelog
* Tue Jun 06 2023 Nikita Popov <npopov@redhat.com> - 16.0.1-3
- Disable LTO on i686 due to OOM
* Fri May 05 2023 Nikita Popov <npopov@redhat.com> - 16.0.1-2
- Build with LTO