Skip to content

Commit f0b2a0e

Browse files
joboettgross35
authored andcommitted
skip API that requires a newer macOS SDK in tests
(apply <#3769> to `main`) (cherry picked from commit 17cb3a2)
1 parent 26bd16f commit f0b2a0e

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

libc-test/build.rs

+21-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ fn test_apple(target: &str) {
222222
"os/clock.h",
223223
"os/lock.h",
224224
"os/signpost.h",
225-
"os/os_sync_wait_on_address.h",
225+
// FIXME: Requires the macOS 14.4 SDK.
226+
//"os/os_sync_wait_on_address.h",
226227
"poll.h",
227228
"pthread.h",
228229
"pthread_spis.h",
@@ -313,6 +314,9 @@ fn test_apple(target: &str) {
313314
return true;
314315
}
315316
match ty {
317+
// FIXME: Requires the macOS 14.4 SDK.
318+
"os_sync_wake_by_address_flags_t" | "os_sync_wait_on_address_flags_t" => true,
319+
316320
_ => false,
317321
}
318322
});
@@ -327,6 +331,13 @@ fn test_apple(target: &str) {
327331

328332
// FIXME: XCode 13.1 doesn't have it.
329333
"TIOCREMOTE" => true,
334+
335+
// FIXME: Requires the macOS 14.4 SDK.
336+
"OS_SYNC_WAKE_BY_ADDRESS_NONE"
337+
| "OS_SYNC_WAKE_BY_ADDRESS_SHARED"
338+
| "OS_SYNC_WAIT_ON_ADDRESS_NONE"
339+
| "OS_SYNC_WAIT_ON_ADDRESS_SHARED" => true,
340+
330341
_ => false,
331342
}
332343
});
@@ -349,6 +360,15 @@ fn test_apple(target: &str) {
349360
// FIXME: Once the SDK get updated to Ventura's level
350361
"freadlink" | "mknodat" | "mkfifoat" => true,
351362

363+
// FIXME: Requires the macOS 14.4 SDK.
364+
"os_sync_wake_by_address_any"
365+
| "os_sync_wake_by_address_all"
366+
| "os_sync_wake_by_address_flags_t"
367+
| "os_sync_wait_on_address"
368+
| "os_sync_wait_on_address_flags_t"
369+
| "os_sync_wait_on_address_with_deadline"
370+
| "os_sync_wait_on_address_with_timeout" => true,
371+
352372
_ => false,
353373
}
354374
});

0 commit comments

Comments
 (0)