about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-10-04 12:31:28 +0200
committerGitHub <noreply@github.com>2025-10-04 12:31:28 +0200
commit7564260ce484277431c115475e12ac08398604b1 (patch)
tree9bc5690f81f0e8afe09a563341a4eeb4dd04a0d7
parent684a872477146fb4c5eca0aadb90b1cd9e3f19ec (diff)
parent99550fbc3ea172a3cf90d2776a217e1ba19a196f (diff)
downloadrust-7564260ce484277431c115475e12ac08398604b1.tar.gz
rust-7564260ce484277431c115475e12ac08398604b1.zip
Rollup merge of #147280 - workingjubilee:you-can-put-your-gcc-in-my-llvm-components, r=Kobzol
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;