start adding flip-link

This commit is contained in:
Lotte Steenbrink 2021-01-22 10:32:51 +01:00
parent c54d03e19b
commit fdc56a32e2
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# (..)
rustflags = [
"-C", "linker=flip-link", # adds stack overflow protection
# (..)
]
[target.thumbv7em-none-eabihf]
runner = "probe-run --chip nRF52840_xxAA"
rustflags = [

View file

@ -25,11 +25,11 @@ usb2 = { git = "https://github.com/japaric/usb2" }
# optimize code in both profiles
[profile.dev]
codegen-units = 1
debug = 1
debug = 2
debug-assertions = true # !
incremental = false
lto = "fat"
opt-level = 'z' # !
opt-level = 1 # !
overflow-checks = false
[profile.release]