diff --git a/src/tools/compiletest/src/command-list.rs b/src/tools/compiletest/src/command-list.rs index c356f4266f0..825f23e0582 100644 --- a/src/tools/compiletest/src/command-list.rs +++ b/src/tools/compiletest/src/command-list.rs @@ -168,6 +168,7 @@ "only-32bit", "only-64bit", "only-aarch64", + "only-aarch64-unknown-linux-gnu", "only-apple", "only-arm", "only-avr", diff --git a/tests/run-make/mte-ffi/rmake.rs b/tests/run-make/mte-ffi/rmake.rs index 132c12aa7f0..f4fafb796e3 100644 --- a/tests/run-make/mte-ffi/rmake.rs +++ b/tests/run-make/mte-ffi/rmake.rs @@ -3,10 +3,10 @@ // This test does not require MTE: whilst the test will use MTE if available, if it is not, // arbitrary tag bits are set using TBI. -//@ only-aarch64 -//@ only-linux -//@ only-gnu -//@ run-pass +// This test is only valid for AArch64. +// The linker must be explicitly specified when cross-compiling, so it is limited to +// `aarch64-unknown-linux-gnu`. +//@ only-aarch64-unknown-linux-gnu use run_make_support::{cc, dynamic_lib_name, extra_c_flags, run, rustc, target}; @@ -23,7 +23,7 @@ fn run_test(variant: &str) { flags.push("-march=armv8.5-a+memtag"); flags }; - print!("{variant} test..."); + println!("{variant} test..."); rustc() .input(format!("foo_{variant}.rs")) .target(target()) @@ -35,5 +35,4 @@ fn run_test(variant: &str) { .args(&flags) .run(); run("test"); - println!("\tpassed"); }