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

cargo: Add rustflag to force frame pointers #23

Merged
merged 1 commit into from
Aug 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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