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]
|
[target.thumbv7em-none-eabihf]
|
||||||
runner = "probe-run --chip nRF52840_xxAA"
|
runner = "probe-run --chip nRF52840_xxAA"
|
||||||
rustflags = [
|
rustflags = [
|
||||||
|
|
|
@ -25,11 +25,11 @@ usb2 = { git = "https://github.com/japaric/usb2" }
|
||||||
# optimize code in both profiles
|
# optimize code in both profiles
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
debug = 1
|
debug = 2
|
||||||
debug-assertions = true # !
|
debug-assertions = true # !
|
||||||
incremental = false
|
incremental = false
|
||||||
lto = "fat"
|
lto = "fat"
|
||||||
opt-level = 'z' # !
|
opt-level = 1 # !
|
||||||
overflow-checks = false
|
overflow-checks = false
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
|
Loading…
Reference in a new issue