diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-03 16:34:10 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-03 16:34:10 -0800 |
commit | 4d94ef65a6e9fc7bd4634e871e50fdda08c227a6 (patch) | |
tree | 245226e9446ffa33224c8ed240f40e841c628abf /emscripten.py | |
parent | 7f45922c7ffa3c8591344b2851373c70a4bf05ae (diff) |
forward assertions setting into backend, and test checking for invalid # of args in static calls
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/emscripten.py b/emscripten.py index 37e1c83f..7f8b5505 100755 --- a/emscripten.py +++ b/emscripten.py @@ -746,6 +746,8 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None, backend_args += ['-emscripten-warn-unaligned'] if settings['RESERVED_FUNCTION_POINTERS'] > 0: backend_args += ['-emscripten-reserved-function-pointers=%d' % settings['RESERVED_FUNCTION_POINTERS']] + if settings['ASSERTIONS'] > 0: + backend_args += ['-emscripten-assertions=%d' % settings['ASSERTIONS']] if DEBUG: logging.debug('emscript: llvm backend: ' + ' '.join(backend_args)) t = time.time() |