From d35b814047948bcbe401951bbff88f4a6a45b89b Mon Sep 17 00:00:00 2001 From: Empire Date: Mon, 27 Nov 2023 00:05:09 +0100 Subject: [PATCH] adjust compile stuff --- rust/Cargo.toml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 0171913..3416fc5 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -8,18 +8,25 @@ rust-version = "1.71" [profile.release] # Explicitly disable LTO which the Xtensa codegen backend has issues -lto = "thin" +#lto = "thin" opt-level = "s" strip = false -codegen-units = 1 +#codegen-units = 1 +debug = true +overflow-checks = true +panic = "unwind" +incremental = true [profile.dev] # Explicitly disable LTO which the Xtensa codegen backend has issues -lto = "thin" -debug = true # Symbols are nice and they don't increase the size on Flash +#lto = "thin" opt-level = "s" strip = false -codegen-units = 1 +#codegen-units = 1 +debug = true +overflow-checks = true +panic = "unwind" +incremental = true [package.metadata.cargo_runner] # The string `$TARGET_FILE` will be replaced with the path from cargo.