Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/support/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ void wasm::flush_and_quick_exit(int code) {
// things can run during shutdown normally.
std::exit(code);
#else
std::quick_exit(code);
// A "better" function to use here would be std::quick_exit, however on older
// version of macOS (at least as new as 13.2 which currently runs on our CI)
// the C symbol _quick_exit (which is called by std::quick_exit) is missing.
// So instead use _Exit(); the only difference is that _Exit() does not call
// handlers registered by at_quick_exit(). Currently Binaryen does not have
// any of those.
_Exit(code);
#endif
}
Loading