Build with LLVM 15 on Fedora 38+

This commit is contained in:
Josh Stone 2023-05-01 10:07:31 -07:00
parent 77613da92c
commit 41fd9d7898

View File

@ -85,7 +85,7 @@
Name: rust Name: rust
Version: 1.69.0 Version: 1.69.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: The Rust Programming Language Summary: The Rust Programming Language
License: (ASL 2.0 or MIT) and (BSD and MIT) License: (ASL 2.0 or MIT) and (BSD and MIT)
# ^ written as: (rust itself) and (bundled libraries) # ^ written as: (rust itself) and (bundled libraries)
@ -222,6 +222,12 @@ BuildRequires: ninja-build
Provides: bundled(llvm) = %{bundled_llvm_version} Provides: bundled(llvm) = %{bundled_llvm_version}
%else %else
BuildRequires: cmake >= 2.8.11 BuildRequires: cmake >= 2.8.11
# LLVM 16 is breaking firefox with "error: Cannot represent a difference across sections"
# https://bugzilla.redhat.com/show_bug.cgi?id=2189964
# https://github.com/llvm/llvm-project/issues/61932
%if 0%{?fedora} >= 38
%global llvm llvm15
%endif
%if 0%{?epel} == 7 %if 0%{?epel} == 7
%global llvm llvm14 %global llvm llvm14
%endif %endif
@ -1053,6 +1059,9 @@ end}
%changelog %changelog
* Mon May 01 2023 Josh Stone <jistone@redhat.com> - 1.69.0-2
- Build with LLVM 15 on Fedora 38+
* Thu Apr 20 2023 Josh Stone <jistone@redhat.com> - 1.69.0-1 * Thu Apr 20 2023 Josh Stone <jistone@redhat.com> - 1.69.0-1
- Update to 1.69.0. - Update to 1.69.0.
- Obsolete rust-analysis. - Obsolete rust-analysis.