Use target_vendor = "apple" instead of target_os = "..."

This commit is contained in:
Mads Marquart
2024-04-28 18:22:37 +02:00
parent cb49406457
commit d9c0eb8084
18 changed files with 74 additions and 336 deletions

View File

@@ -40,11 +40,7 @@ fn test_named_thread() {
#[cfg(any(
// Note: musl didn't add pthread_getname_np until 1.2.3
all(target_os = "linux", target_env = "gnu"),
target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "watchos",
target_os = "visionos",
target_vendor = "apple",
))]
#[test]
fn test_named_thread_truncation() {