From f5f08e67231ae0e560b5cc1c844c48b3f7b33cb4 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 23 Jun 2021 13:51:07 -0400 Subject: [PATCH] Disable LTO on 32 bit https://github.com/coreos/rpm-ostree/pull/2923 https://bugzilla.redhat.com/show_bug.cgi?id=1974927 --- rpm-ostree.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpm-ostree.spec b/rpm-ostree.spec index e53be9f..4937524 100644 --- a/rpm-ostree.spec +++ b/rpm-ostree.spec @@ -133,6 +133,11 @@ The %{name}-devel package includes the header files for %{name}-libs. %prep %autosetup -Sgit -n %{name}-%{version} +# We hit "LLVM ERROR: out of memory" with LTO on 32 bit +# https://bugzilla.redhat.com/show_bug.cgi?id=1974927 +%if %{__isa_bits} == 32 +sed -ie 's,^lto = true,# disabled: lto = true,' Cargo.toml +%endif %build env NOCONFIGURE=1 ./autogen.sh