From fd6002b277b201bb713b8e4b2551abb50d999188 Mon Sep 17 00:00:00 2001 From: Jakub Panek Date: Sun, 6 Feb 2022 02:26:16 +0000 Subject: [PATCH] abuild.conf: set release profile optimisations for cargo Signed-off-by: Jakub Panek --- abuild.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/abuild.conf b/abuild.conf index 745a119..ff9103f 100644 --- a/abuild.conf +++ b/abuild.conf @@ -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