Skip to content

Commit 98899a7

Browse files
authored
[EH] Warn for ASYNCIFY + -fwasm-exceptions (#18635)
This combination is currently not supported.
1 parent c4f7a55 commit 98899a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

emcc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,8 @@ def phase_setup(options, state, newargs):
15951595
exit_with_error('DISABLE_EXCEPTION_CATCHING is not compatible with -fwasm-exceptions')
15961596
if 'DISABLE_EXCEPTION_THROWING' in user_settings:
15971597
exit_with_error('DISABLE_EXCEPTION_THROWING is not compatible with -fwasm-exceptions')
1598+
if 'ASYNCIFY' in user_settings and user_settings['ASYNCIFY'] == '1':
1599+
diagnostics.warning('emcc', 'ASYNCIFY=1 is not compatible with -fwasm-exceptions. Parts of the program that mix ASYNCIFY and exceptions will not compile.')
15981600
settings.DISABLE_EXCEPTION_CATCHING = 1
15991601
settings.DISABLE_EXCEPTION_THROWING = 1
16001602

0 commit comments

Comments
 (0)