From 37ae2b68b1631a5f2cb7d2b2f6478acba654d651 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Thu, 16 May 2024 12:58:09 +0200 Subject: Disable stack overflow handler tests on iOS-like platforms --- library/std/src/sys/pal/unix/stack_overflow.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'library/std/src') diff --git a/library/std/src/sys/pal/unix/stack_overflow.rs b/library/std/src/sys/pal/unix/stack_overflow.rs index 26c49257ad0..2e5bd85327a 100644 --- a/library/std/src/sys/pal/unix/stack_overflow.rs +++ b/library/std/src/sys/pal/unix/stack_overflow.rs @@ -491,6 +491,14 @@ mod imp { } } +// This is intentionally not enabled on iOS/tvOS/watchOS/visionOS, as it uses +// several symbols that might lead to rejections from the App Store, namely +// `sigaction`, `sigaltstack`, `sysctlbyname`, `mmap`, `munmap` and `mprotect`. +// +// This might be overly cautious, though it is also what Swift does (and they +// usually have fewer qualms about forwards compatibility, since the runtime +// is shipped with the OS): +// #[cfg(not(any( target_os = "linux", target_os = "freebsd", -- cgit 1.4.1-3-g733a5