about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2025-09-22 21:13:38 -0400
committerBen Kimock <kimockb@gmail.com>2025-09-22 21:13:38 -0400
commit4c1595a93b349fa755d84f8943860589c27b64f0 (patch)
tree55d56120a7bd53879265b823675a0c2bcdd8c66a
parentaef02fb864349a249207cbd14b51b9fe5f5691ca (diff)
downloadrust-4c1595a93b349fa755d84f8943860589c27b64f0.tar.gz
rust-4c1595a93b349fa755d84f8943860589c27b64f0.zip
Skip the panic-immediate-abort-works test when cross-compiling
-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)]