diff options
| author | Mads Marquart <mads@marquart.dk> | 2024-05-16 12:58:09 +0200 |
|---|---|---|
| committer | Mads Marquart <mads@marquart.dk> | 2024-05-28 12:31:12 +0200 |
| commit | 37ae2b68b1631a5f2cb7d2b2f6478acba654d651 (patch) | |
| tree | 7da2b6eb44256ea6030c31714f922f590f37c2ee /library/std/src | |
| parent | d82be822a84c6e511cfb586827d0f100290f6581 (diff) | |
| download | rust-37ae2b68b1631a5f2cb7d2b2f6478acba654d651.tar.gz rust-37ae2b68b1631a5f2cb7d2b2f6478acba654d651.zip | |
Disable stack overflow handler tests on iOS-like platforms
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/pal/unix/stack_overflow.rs | 8 |
1 files changed, 8 insertions, 0 deletions
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): +// <https://github.com/apple/swift/blob/swift-5.10-RELEASE/stdlib/public/runtime/CrashHandlerMacOS.cpp> #[cfg(not(any( target_os = "linux", target_os = "freebsd", |
