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

@ -6,8 +6,8 @@ target = "riscv32imac-esp-espidf"
linker = "ldproxy" linker = "ldproxy"
#runner = "espflash flash --monitor --partition-table partitions.csv" # Select this runner for espflash v2.x.x #runner = "espflash flash --monitor --partition-table partitions.csv" # Select this runner for espflash v2.x.x
# runner = espflash erase-parts otadata # runner = espflash erase-parts otadata
runner = "espflash flash --monitor --baud 921600 --partition-table partitions.csv" # Select this runner for espflash v2.x.x runner = "espflash flash --monitor --baud 921600 --partition-table partitions.csv" # Select this runner for espflash v2.x.x
#runner = "cargo runner" # runner = "cargo runner"
rustflags = [ "--cfg", "espidf_time64"] # Extending time_t for ESP IDF 5: https://github.com/esp-rs/rust/issues/110 rustflags = [ "--cfg", "espidf_time64"] # Extending time_t for ESP IDF 5: https://github.com/esp-rs/rust/issues/110
[target.xtensa-esp32-espidf] [target.xtensa-esp32-espidf]
@ -27,3 +27,4 @@ MCU="esp32c6"
ESP_IDF_VERSION = "v5.1.1" ESP_IDF_VERSION = "v5.1.1"
CHRONO_TZ_TIMEZONE_FILTER="UTC|Europe/Berlin" CHRONO_TZ_TIMEZONE_FILTER="UTC|Europe/Berlin"
CARGO_WORKSPACE_DIR = { value = "", relative = true } CARGO_WORKSPACE_DIR = { value = "", relative = true }
RUST_BACKTRACE = "full"

View File

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