Accepting request 826669 from home:MSirringhaus:branches:devel:languages:rust_2

- Set codeunits=1 for all archs to avoid OOM-kills and produce 
  the fastest possible compiler-binaries (at the cost of 
  build-times for this package)

OBS-URL: https://build.opensuse.org/request/show/826669
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=261
This commit is contained in:
Neal Gompa 2020-08-17 13:36:06 +00:00 committed by Git OBS Bridge
parent 436ad59e80
commit 2e33e70f94
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Aug 14 12:00:58 UTC 2020 - Martin Sirringhaus <martin.sirringhaus@suse.com>
- Set codeunits=1 for all archs to avoid OOM-kills and produce
the fastest possible compiler-binaries (at the cost of
build-times for this package)
-------------------------------------------------------------------
Thu Aug 13 13:38:23 UTC 2020 - Andreas Schwab <schwab@suse.de>

View File

@ -86,12 +86,15 @@
%bcond_without rls
%endif
# Do not use parallel codegen in order to
# a) not exhaust memory on build-machines and
# b) generate the fastest possible binary
# at the cost of longer build times for this package
%define codegen_units --set rust.codegen-units=1
# Debuginfo can exhaust memory on these architecture workers
%ifarch %{arm} %{ix86}
%define codegen_units --set rust.codegen-units=2
%define debug_info --disable-debuginfo --disable-debuginfo-only-std --disable-debuginfo-tools --disable-debuginfo-lines
%else
%define codegen_units --set rust.codegen-units=0
%define debug_info --enable-debuginfo --disable-debuginfo-only-std --enable-debuginfo-tools --disable-debuginfo-lines
%endif