Skip to content

Commit

Permalink
Recognize that Emterpreter and SharedArrayBuffer/pthreads builds are …
Browse files Browse the repository at this point in the history
…not mutually compatible. Helps to clean up error message to a more readable form, encountered in emscripten-core#4771.
  • Loading branch information
juj committed Dec 7, 2016
1 parent 0efac40 commit 5043eac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions emcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,13 +1151,16 @@ def check(input_file):

if shared.Settings.USE_PTHREADS:
if shared.Settings.LINKABLE:
logging.error('-s LINKABLE=1 is not supported with -s USE_PTHREADS=1!')
logging.error('-s LINKABLE=1 is not supported with -s USE_PTHREADS>0!')
exit(1)
if shared.Settings.SIDE_MODULE:
logging.error('-s SIDE_MODULE=1 is not supported with -s USE_PTHREADS=1!')
logging.error('-s SIDE_MODULE=1 is not supported with -s USE_PTHREADS>0!')
exit(1)
if shared.Settings.MAIN_MODULE:
logging.error('-s MAIN_MODULE=1 is not supported with -s USE_PTHREADS=1!')
logging.error('-s MAIN_MODULE=1 is not supported with -s USE_PTHREADS>0!')
exit(1)
if shared.Settings.EMTERPRETIFY:
logging.error('-s EMTERPRETIFY=1 is not supported with -s USE_PTHREADS>0!')
exit(1)

if shared.Settings.OUTLINING_LIMIT:
Expand Down

0 comments on commit 5043eac

Please sign in to comment.