compiletest: consider transitioning `//@ only-*` target-based directives to e.g. `//@ only-target_arch: arch1 arch2`
Open
@jieyouxu is already working on this.
Since May 2, 2025.
A-compiletest
C-enhancement
S-blocked
T-bootstrap
T-compiler
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Which allows permitting e.g. both aarch64 + x86_64. Currently
//@ only-x86_64
//@ only-aarch64
means the test will never run, since this is AND of x86_64 + aarch64 target archs.
Also might want to consider detecting "test will never run" directive combos.
Blocked: don't pile on hacks, name-value directive parsing in compiletest desperately needs cleanup.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.