Modify some run-make tests to use //@ needs-target-std

Instead of a jumble of `ignore-$target`s, `ignore-none` and
`ignore-nvptx`.
This commit is contained in:
Jieyou Xu
2025-06-10 22:22:52 +08:00
parent c5b8123574
commit c558db34dc
6 changed files with 6 additions and 24 deletions

View File

@@ -6,15 +6,11 @@
//@ ignore-cross-compile
// Reason: the compiled binary is executed
//@ ignore-none
// Reason: no-std is not supported.
//@ ignore-wasm32
//@ ignore-wasm64
// Reason: compiling C++ to WASM may cause problems.
// Neither of these are tested in full CI.
//@ ignore-nvptx64-nvidia-cuda
// Reason: can't find crate "std"
// Not exercised in full CI, but sgx technically supports std.
//@ ignore-sgx
use run_make_support::{build_native_static_lib_cxx, run, rustc};

View File

@@ -10,8 +10,7 @@
// (See #85673)
//@ ignore-wasm32
//@ ignore-wasm64
//@ ignore-none
// Reason: no-std is not supported
//@ needs-target-std
use run_make_support::{bin_name, llvm_readobj, rustc};

View File

@@ -5,10 +5,7 @@
// source file from disk during compilation of a downstream crate.
// See https://github.com/rust-lang/rust/issues/86480
//@ ignore-none
// Reason: no-std is not supported
//@ ignore-nvptx64-nvidia-cuda
// Reason: can't find crate for 'std'
//@ needs-target-std
use run_make_support::{rfs, rust_lib_name, rustc};

View File

@@ -7,11 +7,7 @@
// was hashed by rustc in addition to the span length, and the fix still
// works.
//@ ignore-none
// reason: no-std is not supported
//@ ignore-nvptx64-nvidia-cuda
// FIXME: can't find crate for `std`
//@ needs-target-std
use run_make_support::{rfs, rustc};

View File

@@ -9,10 +9,7 @@
// for successful compilation.
// See https://github.com/rust-lang/rust/issues/83112
//@ ignore-none
// Reason: no-std is not supported
//@ ignore-nvptx64-nvidia-cuda
// FIXME: can't find crate for 'std'
//@ needs-target-std
use run_make_support::{rfs, rustc};

View File

@@ -12,10 +12,7 @@
// sessions.
// See https://github.com/rust-lang/rust/issues/85019
//@ ignore-none
// Reason: no-std is not supported
//@ ignore-nvptx64-nvidia-cuda
// FIXME: can't find crate for 'std'
//@ needs-target-std
use run_make_support::{rfs, rust_lib_name, rustc};