Exclude wasm on s390x for lack of lld

This commit is contained in:
Josh Stone 2021-07-08 17:13:17 -07:00
parent 2104887fc0
commit e9feea05d7
1 changed files with 5 additions and 2 deletions

View File

@ -62,7 +62,7 @@
Name: rust Name: rust
Version: 1.53.0 Version: 1.53.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)
@ -282,7 +282,7 @@ written in Rust.
for triple in string.gmatch(rpm.expand("%{cross_targets}"), "%S+") do for triple in string.gmatch(rpm.expand("%{cross_targets}"), "%S+") do
local requires = rpm.expand("Requires: rust = %{version}-%{release}") local requires = rpm.expand("Requires: rust = %{version}-%{release}")
if string.sub(triple, 1, 4) == "wasm" then if string.sub(triple, 1, 4) == "wasm" then
requires = requires .. "\nRequires: lld >= 8.0" requires = requires .. "\nRequires: lld >= 8.0\nExcludeArch: s390x"
end end
local subs = { local subs = {
triple = triple, triple = triple,
@ -815,6 +815,9 @@ end}
%changelog %changelog
* Thu Jul 08 2021 Josh Stone <jistone@redhat.com> - 1.53.0-2
- Exclude wasm on s390x for lack of lld
* Thu Jun 17 2021 Josh Stone <jistone@redhat.com> - 1.53.0-1 * Thu Jun 17 2021 Josh Stone <jistone@redhat.com> - 1.53.0-1
- Update to 1.53.0. - Update to 1.53.0.