Skip to content

Use _Exit instead of std::quick_exit to work around macOS bug - #8232

Merged
dschuff merged 3 commits into
mainfrom
exit
Jan 23, 2026
Merged

dschuff merged 3 commits into
mainfrom
exit

Conversation

@dschuff

@dschuff dschuff commented Jan 23, 2026 •

Copy link
Copy Markdown
Member

Older versions of macOS are missing the libc symbol quick_exit, despite
the fact that libc++ implements std::quick_exit on top of it. The
result is that Binaryen will link but fail to load.
Switch to _Exit instead.

Older versions of MacOS are missing the libc symbol quick_exit, despite
the fact that libc++ implements std::quick_exit on top of it. The
result is that Binaryen will link but fail to load.
Switch to _Exit instead.
@dschuff dschuff changed the title exit Use _Exit instead of std::quick_exit to work around MacOS bug Jan 23, 2026
Comment thread src/support/file.cpp Outdated
@dschuff
dschuff requested a review from kripken January 23, 2026 21:51
@dschuff dschuff changed the title Use _Exit instead of std::quick_exit to work around MacOS bug Use _Exit instead of std::quick_exit to work around macOS bug Jan 23, 2026
@dschuff
dschuff enabled auto-merge (squash) January 23, 2026 21:52
@dschuff
dschuff merged commit 6c29e85 into main Jan 23, 2026
18 checks passed
@dschuff
dschuff deleted the exit branch January 23, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants