Skip to content

Commit a0fc6fa

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 64039e4 commit a0fc6fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/stm32f4-event-printer/.cargo/config.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
[target.thumbv7em-none-eabihf]
22
runner = 'probe-run --chip STM32F401RE'
3+
4+
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
5+
linker = "flip-link"
6+
37
rustflags = [
48
"-C", "link-arg=-Tlink.x",
59
"-C", "link-arg=-Tdefmt.x",
6-
"-C", "linker=flip-link",
710
]
811

912
[build]

0 commit comments

Comments
 (0)