diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-21 11:07:53 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-21 11:08:25 -0800 |
commit | 8dd12f6e6c85f194309084530a95bced231f0704 (patch) | |
tree | b1814b876cddc277405a817b076348fd6444d3c0 /emcc | |
parent | 813032e5b9b648b0d82c78f24cc8c3c3d1fbe02d (diff) |
error on unsupported features in fastcomp
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1164,6 +1164,23 @@ try: if os.environ.get('EMCC_FAST_COMPILER'): shared.Settings.ASM_JS = 1 + if shared.Settings.DISABLE_EXCEPTION_CATCHING == 0: + logging.warning('disabling exception catching since not supported in fastcomp yet') + shared.Settings.DISABLE_EXCEPTION_CATCHING = 1 + assert shared.Settings.ALLOW_MEMORY_GROWTH == 0, 'memory growth not supported in fastcomp yet' + assert shared.Settings.UNALIGNED_MEMORY == 0, 'forced unaligned memory not supported in fastcomp' + assert shared.Settings.SAFE_HEAP == 0, 'safe heap not supported in fastcomp yet' + assert shared.Settings.CHECK_HEAP_ALIGN == 0, 'check heap align not supported in fastcomp yet' + assert shared.Settings.SAFE_DYNCALLS == 0, 'safe dyncalls not supported in fastcomp' + assert shared.Settings.RESERVED_FUNCTION_POINTERS == 0, 'reserved function pointers not supported in fastcomp' + assert shared.Settings.ASM_HEAP_LOG == 0, 'asm heap log not supported in fastcomp' + assert shared.Settings.LABEL_DEBUG == 0, 'label debug not supported in fastcomp' + assert shared.Settings.LEGACY_GL_EMULATION == 0, 'legacy gl emulation not supported in fastcomp' + assert shared.Settings.EXECUTION_TIMEOUT == -1, 'execution timeout not supported in fastcomp' + assert shared.Settings.NAMED_GLOBALS == 0, 'named globals not supported in fastcomp' + assert shared.Settings.PGO == 0, 'pgo not supported in fastcomp' + assert shared.Settings.TARGET_LE32 == 1, 'fastcomp requires le32' + assert not bind, 'embind not supported in fastcomp yet' if shared.Settings.ASM_JS: assert opt_level >= 1 or os.environ.get('EMCC_FAST_COMPILER'), 'asm.js requires -O1 or above' |