Document `needs-target-has-atomic` directive (#2154)

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-12-05 13:01:46 +08:00 committed by GitHub
parent b21d99b770
commit e31250726c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -183,6 +183,10 @@ settings:
assertions. assertions.
- `needs-rustc-debug-assertions` — ignores if rustc was not built with debug - `needs-rustc-debug-assertions` — ignores if rustc was not built with debug
assertions. assertions.
- `needs-target-has-atomic` — ignores if target does not have support for all
specified atomic widths, e.g. the test with `//@ needs-target-has-atomic: 8,
16, ptr` will only run if it supports the comma-separated list of atomic
widths.
The following directives will check LLVM support: The following directives will check LLVM support: