abuild.conf: set release profile optimisations for cargo

Signed-off-by: Jakub Panek <me@panekj.dev>
This commit is contained in:
Jakub Panek 2022-02-06 02:26:16 +00:00 committed by Natanael Copa
parent 33ce0536ef
commit fd6002b277
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ export MAKEFLAGS=-j$JOBS
export SAMUFLAGS=-j$JOBS
export CARGO_BUILD_JOBS=$JOBS
export CARGO_PROFILE_RELEASE_OPT_LEVEL="s"
export CARGO_PROFILE_RELEASE_PANIC="abort"
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
export CARGO_PROFILE_RELEASE_LTO="true"
# remove line below to disable colors
USE_COLORS=1