We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.target_cpu()
1 parent 78ddabf commit d5128f9Copy full SHA for d5128f9
tests/run-make/avr-rjmp-offset/rmake.rs
@@ -23,6 +23,10 @@ fn main() {
23
.opt_level("s")
24
.panic("abort")
25
.target("avr-none")
26
+ // rust-lld has some troubles understanding the -mmcu flag, so for the
27
+ // time being let's tell rustc to emit binary that's compatible with the
28
+ // target CPU that lld defaults to, i.e. just `avr` (that's simply the
29
+ // minimal common instruction set across all AVRs)
30
.target_cpu("avr")
31
// normally one links with `avr-gcc`, but this is not available in CI,
32
// hence this test diverges from the default behavior to enable linking
0 commit comments