diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-12-02 17:36:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-02 17:36:07 +0100 |
| commit | 80e04489475caeeb39a483adf6b4c86cc40c7be0 (patch) | |
| tree | f58116efd8fafb3f7b50ffaad50b129cfc2ac463 /compiler/rustc_codegen_llvm/src | |
| parent | 8f5a801b5cef26bce5e9a6f59f1ed354f601c595 (diff) | |
| parent | 99c232223f8330debc199f616308bc559b38c361 (diff) | |
| download | rust-80e04489475caeeb39a483adf6b4c86cc40c7be0.tar.gz rust-80e04489475caeeb39a483adf6b4c86cc40c7be0.zip | |
Rollup merge of #133736 - jieyouxu:needs-target-has-atomic, r=compiler-errors
Add `needs-target-has-atomic` directive Before this PR, the test writer has to specify platforms and architectures by hand for targets that have differing atomic width support. `#[cfg(target_has_atomic="...")]` is not quite the same because (1) you may have to specify additional matchers manually which has to be maintained individually, and (2) the `#[cfg]` blocks does not communicate to compiletest that a test would be ignored for a given target. This PR implements a `//@ needs-target-has-atomic` directive which admits a comma-separated list of required atomic widths that the target must satisfy in order for the test to run. ``` //@ needs-target-has-atomic: 8, 16, ptr ``` See <https://github.com/rust-lang/rust/issues/87377>. This PR supersedes #133095 and is co-authored by `@kei519,` because it was somewhat subtle, and it turned out easier to implement than to review. rustc-dev-guide docs PR: https://github.com/rust-lang/rustc-dev-guide/pull/2154
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
