about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/run-make/avr-rjmp-offset/rmake.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run-make/avr-rjmp-offset/rmake.rs b/tests/run-make/avr-rjmp-offset/rmake.rs
index 73b6ab3977e..da314f26ca7 100644
--- a/tests/run-make/avr-rjmp-offset/rmake.rs
+++ b/tests/run-make/avr-rjmp-offset/rmake.rs
@@ -23,6 +23,10 @@ fn main() {
         .opt_level("s")
         .panic("abort")
         .target("avr-none")
+        // rust-lld has some troubles understanding the -mmcu flag, so for the
+        // time being let's tell rustc to emit binary that's compatible with the
+        // target CPU that lld defaults to, i.e. just `avr` (that's simply the
+        // minimal common instruction set across all AVRs)
         .target_cpu("avr")
         // normally one links with `avr-gcc`, but this is not available in CI,
         // hence this test diverges from the default behavior to enable linking