Skip to content

Commit 5154f04

Browse files
committed
Use target.'cfg(all())'.rustflags in template
`target.'cfg(all())'.linker` is apparently a recent addition: rust-lang/cargo#12535
1 parent b746a32 commit 5154f04

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/template/.cargo/config.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
[target.'cfg(all())']
2-
linker = "dylint-link"
2+
rustflags = ["-C", "linker=dylint-link"]
3+
4+
# For Rust versions 1.74.0 and onward, the following alternative can be used
5+
# (see https://github.com/rust-lang/cargo/pull/12535):
6+
# linker = "dylint-link"

0 commit comments

Comments
 (0)