run-make: audit tests that codegen for specific targets #129390
Copy link
Copy link
Closed
Labels
A-run-makeArea: port run-make Makefiles to rmake.rsArea: port run-make Makefiles to rmake.rsA-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Tests doing codegen for specific targets need //@ needs-llvm-components directives.
These are the tests that are currently missing the directives and failing if LLVM is built without various aarch64/arm/thumb components or wasm.
- tests\run-make\print-target-list
- tests\run-make\print-to-output
- tests\run-make\print-cfg
- tests\run-make\target-without-atomic-cas
Originally posted by @petrochenkov in #121876 (comment)
Metadata
Metadata
Assignees
Labels
A-run-makeArea: port run-make Makefiles to rmake.rsArea: port run-make Makefiles to rmake.rsA-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Activity
jieyouxu commentedon Aug 22, 2024
E.g. for
print-target-listthis looks a bit awkward, maybe we can dump//@ needs-llvm-components: $KNOWN_LLVM_COMPONENTS, where$KNOWN_LLVM_COMPONENTSis shamelessly stolen from tidy:rust/src/tools/tidy/src/target_specific_tests.rs
Lines 13 to 31 in 0f6e1ae
Between this directive and
COMPILETEST_REQUIRE_ALL_LLVM_COMPONENTS, it is not exactly very clear what's happening.Rollup merge of rust-lang#129605 - jieyouxu:needs-llvm-components, r=…
Rollup merge of rust-lang#129605 - jieyouxu:needs-llvm-components, r=…
Unrolled build for rust-lang#129605