Skip to content

Commit 4c4e984

Browse files
committed
skip API that requires a newer macOS SDK in tests
1 parent 5bd8143 commit 4c4e984

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

libc-test/build.rs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ fn test_apple(target: &str) {
242242
"os/clock.h",
243243
"os/lock.h",
244244
"os/signpost.h",
245-
"os/os_sync_wait_on_address.h",
245+
// FIXME: Requires the macOS 14.4 SDK.
246+
//"os/os_sync_wait_on_address.h",
246247
"poll.h",
247248
"pthread.h",
248249
"pthread_spis.h",
@@ -331,6 +332,9 @@ fn test_apple(target: &str) {
331332
return true;
332333
}
333334
match ty {
335+
// FIXME: Requires the macOS 14.4 SDK.
336+
"os_sync_wake_by_address_flags_t" | "os_sync_wait_on_address_flags_t" => true,
337+
334338
_ => false,
335339
}
336340
});
@@ -349,6 +353,14 @@ fn test_apple(target: &str) {
349353

350354
// FIXME: XCode 13.1 doesn't have it.
351355
"TIOCREMOTE" => true,
356+
357+
// FIXME: Requires the macOS 14.4 SDK.
358+
"OS_CLOCK_MACH_ABSOLUTE_TIME"
359+
| "OS_SYNC_WAKE_BY_ADDRESS_NONE"
360+
| "OS_SYNC_WAKE_BY_ADDRESS_SHARED"
361+
| "OS_SYNC_WAIT_ON_ADDRESS_NONE"
362+
| "OS_SYNC_WAIT_ON_ADDRESS_SHARED" => true,
363+
352364
_ => false,
353365
}
354366
});
@@ -374,6 +386,15 @@ fn test_apple(target: &str) {
374386
// FIXME: Once the SDK get updated to Ventura's level
375387
"freadlink" | "mknodat" | "mkfifoat" => true,
376388

389+
// FIXME: Requires the macOS 14.4 SDK.
390+
"os_sync_wake_by_address_any"
391+
| "os_sync_wake_by_address_all"
392+
| "os_sync_wake_by_address_flags_t"
393+
| "os_sync_wait_on_address"
394+
| "os_sync_wait_on_address_flags_t"
395+
| "os_sync_wait_on_address_with_deadline"
396+
| "os_sync_wait_on_address_with_timeout" => true,
397+
377398
_ => false,
378399
}
379400
});

0 commit comments

Comments
 (0)