Fail tests that have a --target
compile-flag, but not needs-llvm-components
#82405
Labels
A-contributor-roadblock
Area: Makes things more difficult for new contributors to rust itself
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Typically when writing a target-specific test, one'll specify a
--target
compilation flag, but the test will fail when the LLVM does not have the corresponding targets enabled. This is mitigated by telling compiletest that certain llvm components are required in order to run said test. The header looks like this:needs-llvm-components: aarch64
.We should make sure that presence of this annotation is enforced by tidy or compiletest itself when
--target
flag is used.The text was updated successfully, but these errors were encountered: