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