Skip to content

Commit d7932b7

Browse files
committed
.cargo/config.toml: define linker in dedicated field
this has been introduced in cargo 1.74, thus we no longer need to define it in the rustflags.
1 parent 4f24e42 commit d7932b7

File tree

1 file changed

+3
-1
lines changed
  • examples/stm32f4-single-motor-example/.cargo

1 file changed

+3
-1
lines changed

examples/stm32f4-single-motor-example/.cargo/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
[target.thumbv7em-none-eabihf]
22
runner = 'probe-rs run --chip STM32F401RE'
3+
4+
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
5+
linker = "flip-link"
36
rustflags = [
47
"-C", "link-arg=-Tlink.x",
58
"-C", "link-arg=-Tdefmt.x",
6-
"-C", "linker=flip-link",
79
]
810

911
[build]

0 commit comments

Comments
 (0)