File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
stdlib/private/StdlibUnittest Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
13
- // No signals support on WASI yet, see https://github.com/WebAssembly/WASI/issues/166.
14
- #if !defined(__wasi__)
15
13
#include < stdio.h>
16
14
#include < signal.h>
17
15
#include < string.h>
18
- #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
16
+ #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__wasi__)
19
17
#include < unistd.h>
20
18
#endif
21
19
#if defined(_WIN32)
@@ -50,8 +48,6 @@ static void CrashCatcher(int Sig) {
50
48
_exit (0 );
51
49
}
52
50
53
- #endif // __wasi__
54
-
55
51
#if defined(_WIN32)
56
52
static LONG WINAPI
57
53
VectoredCrashHandler (PEXCEPTION_POINTERS ExceptionInfo) {
@@ -74,9 +70,6 @@ void installTrapInterceptor() {
74
70
// Disable buffering on stdout so that everything is printed before crashing.
75
71
setbuf (stdout, 0 );
76
72
77
- // No signals support on WASI yet, see https://github.com/WebAssembly/WASI/issues/166.
78
- #if !defined(__wasi__)
79
-
80
73
#if defined(_WIN32)
81
74
_set_abort_behavior (0 , _WRITE_ABORT_MSG);
82
75
#endif
@@ -93,5 +86,3 @@ void installTrapInterceptor() {
93
86
signal (SIGSYS, CrashCatcher);
94
87
#endif
95
88
}
96
-
97
- #endif // !defined(__wasi__)
You can’t perform that action at this time.
0 commit comments