Skip to content

Commit

Permalink
Use target.'cfg(all())'.rustflags in template
Browse files Browse the repository at this point in the history
`target.'cfg(all())'.linker` is apparently a recent addition:
rust-lang/cargo#12535
  • Loading branch information
smoelius committed Dec 8, 2023
1 parent d1a34bd commit 7cb95dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/template/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[target.'cfg(all())']
linker = "dylint-link"
rustflags = ["-C", "linker=dylint-link"]

# For Rust versions 1.74.0 and onward, the following alternative can be used
# (see https://github.com/rust-lang/cargo/pull/12535):
# linker = "dylint-link"

0 comments on commit 7cb95dd

Please sign in to comment.