Remove some LTO workarounds
Most of these are no longer needed now that clang 18 is in the buildroot. However, we still need to workaround a failure on aarch64.
This commit is contained in:
parent
b955ce0c5e
commit
04969fec42
17
clang.spec
17
clang.spec
|
@ -12,10 +12,10 @@
|
||||||
|
|
||||||
%bcond_with compat_build
|
%bcond_with compat_build
|
||||||
%bcond_without check
|
%bcond_without check
|
||||||
# Use lld to workaround memory limits on i686 and to fix bootstrap
|
|
||||||
# issue where clang uses the wrong gold plugin version when the
|
%ifarch aarch64
|
||||||
# LLVM compat package is present.
|
# Use lld on aarch64, becuase ld.bfd will occasionally fail with the error:
|
||||||
%ifnarch s390x
|
# `Could not create temporary file: Too many open files`
|
||||||
%bcond_without linker_lld
|
%bcond_without linker_lld
|
||||||
%else
|
%else
|
||||||
%bcond_with linker_lld
|
%bcond_with linker_lld
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
|
|
||||||
Name: %pkg_name
|
Name: %pkg_name
|
||||||
Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}}
|
Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: A C language family front-end for LLVM
|
Summary: A C language family front-end for LLVM
|
||||||
|
|
||||||
License: Apache-2.0 WITH LLVM-exception OR NCSA
|
License: Apache-2.0 WITH LLVM-exception OR NCSA
|
||||||
|
@ -325,10 +325,8 @@ rm test/CodeGen/profile-filter.c
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
# And disable LTO on AArch64 entirely.
|
|
||||||
# There is a miscompile with lto on x86_64 when using clang-17
|
|
||||||
# Disable lto on i686 due to memory constraints.
|
# Disable lto on i686 due to memory constraints.
|
||||||
%ifarch aarch64 x86_64 %ix86
|
%ifarch %ix86
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
@ -706,6 +704,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C %{__cmake
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 08 2024 Tom Stellard <tstellar@redhat.com> - 18.1.0~rc4-3
|
||||||
|
- Remove some LTO workarounds
|
||||||
|
|
||||||
* Wed Feb 28 2024 Tom Stellard <tstellar@redhat.com> - 18.1.0~rc4-2
|
* Wed Feb 28 2024 Tom Stellard <tstellar@redhat.com> - 18.1.0~rc4-2
|
||||||
- Fix gcc triple on i686
|
- Fix gcc triple on i686
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue