Skip to content

Commit 1c9e52f

Browse files
committed
Remove stack overflow handler for cygwin
1 parent 4d73c77 commit 1c9e52f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

library/std/src/sys/pal/unix/stack_overflow.rs

+3-8
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ impl Drop for Handler {
3232
target_os = "macos",
3333
target_os = "netbsd",
3434
target_os = "openbsd",
35-
target_os = "cygwin",
3635
target_os = "solaris",
3736
target_os = "illumos",
3837
))]
@@ -316,8 +315,7 @@ mod imp {
316315
target_os = "netbsd",
317316
target_os = "hurd",
318317
target_os = "linux",
319-
target_os = "l4re",
320-
target_os = "cygwin"
318+
target_os = "l4re"
321319
))]
322320
unsafe fn get_stack_start() -> Option<*mut libc::c_void> {
323321
let mut ret = None;
@@ -372,8 +370,7 @@ mod imp {
372370
// this way someone on any unix-y OS can check that all these compile
373371
if cfg!(all(target_os = "linux", not(target_env = "musl"))) {
374372
install_main_guard_linux(page_size)
375-
} else if cfg!(any(all(target_os = "linux", target_env = "musl"), target_os = "cygwin"))
376-
{
373+
} else if cfg!(all(target_os = "linux", target_env = "musl")) {
377374
install_main_guard_linux_musl(page_size)
378375
} else if cfg!(target_os = "freebsd") {
379376
install_main_guard_freebsd(page_size)
@@ -513,8 +510,7 @@ mod imp {
513510
target_os = "hurd",
514511
target_os = "linux",
515512
target_os = "netbsd",
516-
target_os = "l4re",
517-
target_os = "cygwin"
513+
target_os = "l4re"
518514
))]
519515
// FIXME: I am probably not unsafe.
520516
unsafe fn current_guard() -> Option<Range<usize>> {
@@ -587,7 +583,6 @@ mod imp {
587583
target_os = "macos",
588584
target_os = "netbsd",
589585
target_os = "openbsd",
590-
target_os = "cygwin",
591586
target_os = "solaris",
592587
target_os = "illumos",
593588
)))]

0 commit comments

Comments
 (0)