mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-10 08:15:36 +00:00
start adding flip-link
This commit is contained in:
parent
c54d03e19b
commit
fdc56a32e2
2 changed files with 9 additions and 2 deletions
|
@ -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 = [
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue