adjust compile stuff

This commit is contained in:
Empire 2023-11-27 00:05:09 +01:00
parent 0a0ac6babf
commit d35b814047

View File

@ -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.