run-make/thumb-none-cortex-m is no-op due to incompatible # only-target
directives
#67018
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-embedded
Working group: Embedded systems
I was working on making a run-make test today for a particular thumb target.
While looking over how we do this elsewhere, I found this bit of code:
rust/src/test/run-make/thumb-none-cortex-m/Makefile
Lines 13 to 16 in 5f1d6c4
From my local testing, it seems like having multiple
# only-target
lines of this form has the net effect of making the test a no-op that does not test anything: since a target matching line 13 will not match line 14, and vice versa, there are no targets that can run on this test.We should either revert the portion of the commit that did this:
f15d20c#diff-463654a579bb644f5d94cd0e1a6ff232
or figure out some other way to express the desired property here
(or change the semantics of
# only-target
when multiple targets are provided to make it gather all such targets up in a set before doing the check for membership... but I am wary of making such a change since doing it right would require differentiating e.g. processor target vs OS target, for example...)The text was updated successfully, but these errors were encountered: