@@ -491,6 +491,14 @@ mod imp { |
|
|
491 |
491 |
} |
492 |
492 |
} |
493 |
493 |
|
|
494 |
+// This is intentionally not enabled on iOS/tvOS/watchOS/visionOS, as it uses |
|
495 |
+// several symbols that might lead to rejections from the App Store, namely |
|
496 |
+// `sigaction`, `sigaltstack`, `sysctlbyname`, `mmap`, `munmap` and `mprotect`. |
|
497 |
+// |
|
498 |
+// This might be overly cautious, though it is also what Swift does (and they |
|
499 |
+// usually have fewer qualms about forwards compatibility, since the runtime |
|
500 |
+// is shipped with the OS): |
|
501 |
+// https://github.com/apple/swift/blob/swift-5.10-RELEASE/stdlib/public/runtime/CrashHandlerMacOS.cpp |
494 |
502 |
#[cfg(not(any( |
495 |
503 |
target_os = "linux", |
496 |
504 |
target_os = "freebsd", |