[test][run-make] add needs-llvm-components

Add some constraints to run-make tests that require specific target support and will fail without them.
This commit is contained in:
David Tenty
2025-07-30 00:39:43 -04:00
parent 5d22242a3a
commit 21af154998
5 changed files with 5 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@
//@ ignore-cross-compile
// Reason: the compiled binary is executed
//@ needs-llvm-components: x86
use run_make_support::{bare_rustc, build_native_dynamic_lib, build_native_static_lib, run, rustc};
@@ -4,6 +4,7 @@
// now replaced by a clearer normal error message. This test checks that this aforementioned
// error message is used.
// See https://github.com/rust-lang/rust/issues/10814
//@ needs-llvm-components: x86
use run_make_support::rustc;
@@ -4,6 +4,7 @@
// Per https://github.com/rust-lang/compiler-team/issues/422,
// we should be trying to move these targets to dynamically link
// musl libc by default.
//@ needs-llvm-components: aarch64 arm mips powerpc riscv systemz x86
static LEGACY_STATIC_LINKING_TARGETS: &[&'static str] = &[
"aarch64-unknown-linux-musl",
"arm-unknown-linux-musleabi",
@@ -1,4 +1,5 @@
// Test that rustdoc will properly canonicalize the target spec json path just like rustc.
//@ needs-llvm-components: x86
use run_make_support::{cwd, rustc, rustdoc};
+1
View File
@@ -4,6 +4,7 @@
// with the target flag's bundle of new features to check that compilation either succeeds while
// using them correctly, or fails with the right error message when using them improperly.
// See https://github.com/rust-lang/rust/pull/16156
//@ needs-llvm-components: x86
use run_make_support::{diff, rfs, rustc};