Skip to content

Commit d5128f9

Browse files
committed
avr-rjmp-offset: Explain .target_cpu()
1 parent 78ddabf commit d5128f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/run-make/avr-rjmp-offset/rmake.rs

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ fn main() {
2323
.opt_level("s")
2424
.panic("abort")
2525
.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)
2630
.target_cpu("avr")
2731
// normally one links with `avr-gcc`, but this is not available in CI,
2832
// hence this test diverges from the default behavior to enable linking

0 commit comments

Comments
 (0)