about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2025-10-02 14:36:57 -0700
committerJubilee Young <workingjubilee@gmail.com>2025-10-02 14:39:18 -0700
commit99550fbc3ea172a3cf90d2776a217e1ba19a196f (patch)
treec3baa74912796e89022a05ddfc604a4e7529cb87
parent3369e82c6bc03c5cdb66f730dba6f738b74c8e1d (diff)
downloadrust-99550fbc3ea172a3cf90d2776a217e1ba19a196f.tar.gz
rust-99550fbc3ea172a3cf90d2776a217e1ba19a196f.zip
Return to needs-llvm-components being info-only
Partially revert a535042e80a38196a58c27a8c95552546affe5dc

Even with non-LLVM codegen backends, we want to allow for annotations
that express dependencies to LLVM-specific parts of the test suite.
This includes `//@ needs-llvm-components`, which just allows checking
that LLVM is built with relevant target support before the test is run.
It does not assert the test cannot work with another codegen backend.
-rw-r--r--src/tools/compiletest/src/directives/needs.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tools/compiletest/src/directives/needs.rs b/src/tools/compiletest/src/directives/needs.rs
index c8a729d8aab..9d72492e5b0 100644
--- a/src/tools/compiletest/src/directives/needs.rs
+++ b/src/tools/compiletest/src/directives/needs.rs
@@ -281,10 +281,7 @@ pub(super) fn handle_needs(
 
     // Handled elsewhere.
     if name == "needs-llvm-components" {
-        if config.default_codegen_backend.is_llvm() {
-            return IgnoreDecision::Continue;
-        }
-        return IgnoreDecision::Ignore { reason: "LLVM specific test".into() };
+        return IgnoreDecision::Continue;
     }
 
     let mut found_valid = false;