Reduce rustc's own optimization on i686
Resolves: RHEL-12964
This commit is contained in:
parent
a7d6aa8cee
commit
170b79df1d
@ -656,11 +656,13 @@ end}
|
|||||||
%{export_rust_env}
|
%{export_rust_env}
|
||||||
|
|
||||||
%ifarch %{arm} %{ix86}
|
%ifarch %{arm} %{ix86}
|
||||||
# full debuginfo is exhausting memory; just do libstd for now
|
# full debuginfo and compiler opts are exhausting memory; just do libstd for now
|
||||||
# https://github.com/rust-lang/rust/issues/45854
|
# https://github.com/rust-lang/rust/issues/45854
|
||||||
%define enable_debuginfo --debuginfo-level=0 --debuginfo-level-std=2
|
%define enable_debuginfo --debuginfo-level=0 --debuginfo-level-std=2
|
||||||
|
%define enable_rust_opts --set rust.codegen-units-std=1
|
||||||
%else
|
%else
|
||||||
%define enable_debuginfo --debuginfo-level=2
|
%define enable_debuginfo --debuginfo-level=2
|
||||||
|
%define enable_rust_opts --set rust.codegen-units=1 --set rust.lto=thin
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Some builders have relatively little memory for their CPU count.
|
# Some builders have relatively little memory for their CPU count.
|
||||||
@ -727,8 +729,7 @@ test -r "%{profiler}"
|
|||||||
--disable-llvm-static-stdcpp \
|
--disable-llvm-static-stdcpp \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
%{enable_debuginfo} \
|
%{enable_debuginfo} \
|
||||||
--set rust.codegen-units=1 \
|
%{enable_rust_opts} \
|
||||||
--set rust.lto=thin \
|
|
||||||
--set build.build-stage=2 \
|
--set build.build-stage=2 \
|
||||||
--set build.doc-stage=2 \
|
--set build.doc-stage=2 \
|
||||||
--set build.install-stage=2 \
|
--set build.install-stage=2 \
|
||||||
|
Loading…
Reference in New Issue
Block a user