Skip to content

Commit bd74286

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

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

libc-test/build.rs

+24-1
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,11 @@ fn test_apple(target: &str) {
331332
return true;
332333
}
333334
match ty {
335+
// FIXME: Requires the macOS 14.4 SDK.
336+
"os_clockid_t"
337+
| "os_sync_wake_by_address_flags_t"
338+
| "os_sync_wait_by_address_flags_t" => true,
339+
334340
_ => false,
335341
}
336342
});
@@ -349,6 +355,14 @@ fn test_apple(target: &str) {
349355

350356
// FIXME: XCode 13.1 doesn't have it.
351357
"TIOCREMOTE" => true,
358+
359+
// FIXME: Requires the macOS 14.4 SDK.
360+
"OS_CLOCK_MACH_ABSOLUTE_TIME"
361+
| "OS_SYNC_WAKE_BY_ADDRESS_NONE"
362+
| "OS_SYNC_WAKE_BY_ADDRESS_SHARED"
363+
| "OS_SYNC_WAIT_ON_ADDRESS_NONE"
364+
| "OS_SYNC_WAIT_ON_ADDRESS_SHARED" => true,
365+
352366
_ => false,
353367
}
354368
});
@@ -374,6 +388,15 @@ fn test_apple(target: &str) {
374388
// FIXME: Once the SDK get updated to Ventura's level
375389
"freadlink" | "mknodat" | "mkfifoat" => true,
376390

391+
// FIXME: Requires the macOS 14.4 SDK.
392+
"os_sync_wake_by_address_any"
393+
| "os_sync_wake_by_address_all"
394+
| "os_sync_wake_by_address_flags_t"
395+
| "os_sync_wait_on_address"
396+
| "os_sync_wait_on_address_flags_t"
397+
| "os_sync_wait_on_address_with_deadline"
398+
| "os_sync_wait_on_address_with_timeout" => true,
399+
377400
_ => false,
378401
}
379402
});

0 commit comments

Comments
 (0)