-
-
Notifications
You must be signed in to change notification settings - Fork 15k
run-make/thumb-none-cortex-m is no-op due to incompatible # only-target directives #67018
Copy link
Copy link
Closed
Labels
A-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-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)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.WG-embeddedWorking group: Embedded systemsWorking group: Embedded systems
Metadata
Metadata
Assignees
Labels
A-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-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)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.WG-embeddedWorking group: Embedded systemsWorking group: Embedded systems
Type
Fields
Give feedbackNo fields configured for issues without a type.
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-targetlines 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-targetwhen 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...)