compiler adjustments for c6

This commit is contained in:
Empire Phoenix 2024-04-21 20:17:08 +02:00
parent a44aa86732
commit 82bc9ed66d
2 changed files with 12 additions and 19 deletions

View File

@ -27,3 +27,4 @@ MCU="esp32c6"
ESP_IDF_VERSION = "v5.1.1"
CHRONO_TZ_TIMEZONE_FILTER="UTC|Europe/Berlin"
CARGO_WORKSPACE_DIR = { value = "", relative = true }
RUST_BACKTRACE = "full"

View File

@ -6,26 +6,18 @@ edition = "2021"
resolver = "2"
rust-version = "1.71"
[profile.release]
# Explicitly disable LTO which the Xtensa codegen backend has issues
#lto = "thin"
opt-level = "s"
strip = false
#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"
opt-level = "s"
lto = true
strip = false
#codegen-units = 1
debug = true
debug = false
overflow-checks = true
panic = "unwind"
panic = "abort"
incremental = true
opt-level = "s"
[profile.dev.build-override]
opt-level = 1
incremental = true
[package.metadata.cargo_runner]
@ -35,7 +27,7 @@ command = [
"espflash",
"save-image",
"--chip",
"esp32",
"esp32c6",
"image.bin"
]