about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/run-make-cargo/panic-immediate-abort-works/rmake.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run-make-cargo/panic-immediate-abort-works/rmake.rs b/tests/run-make-cargo/panic-immediate-abort-works/rmake.rs
index bb15bd41e79..3eeef38c962 100644
--- a/tests/run-make-cargo/panic-immediate-abort-works/rmake.rs
+++ b/tests/run-make-cargo/panic-immediate-abort-works/rmake.rs
@@ -4,7 +4,12 @@
 // cleaner and more portable). So this test ensures that we didn't mix up a cfg or a compiler
 // implementation detail in a way that makes panic=immediate-abort encounter errors at link time.
 
+// Ideally this test would be run for most targets, but unfortunately:
+// This test is currently written using `fn main() {}` which requires std.
+// And since the default linker is only a linker for the host, we can't handle cross-compilation.
+// Both of these shortcomings could be addressed at the cost of making the test more complicated.
 //@ needs-target-std
+//@ ignore-cross-compile
 
 #![deny(warnings)]