Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
cargo: Add rustflag to force frame pointers (#23)
Browse files Browse the repository at this point in the history
as required by the
[esp-backtrace](https://github.com/esp-rs/esp-backtrace) crate.
  • Loading branch information
har7an authored Aug 17, 2022
1 parent 92fdceb commit c5bf012
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ runner = "espflash --monitor"
[build]
{% if mcu == "esp32c3" -%}
rustflags = [
# Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
# NOTE: May negatively impact performance of produced code
"-C", "force-frame-pointers",

"-C", "link-arg=-Tlinkall.x",
]
target = "riscv32imac-unknown-none-elf"
Expand Down

0 comments on commit c5bf012

Please sign in to comment.