diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 80488db..fcb701f 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -17,6 +17,16 @@ incremental = true opt-level = 2 +[profile.release] +# Explicitly disable LTO which the Xtensa codegen backend has issues +lto = false +strip = true +debug = false +overflow-checks = false +panic = "abort" +incremental = true +opt-level = "z" + [package.metadata.cargo_runner] # The string `$TARGET_FILE` will be replaced with the path from cargo. command = [