aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-04-25 17:12:47 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-04-25 17:12:47 -0700
commita7dfddc6abee48cc9484fe8f08f45d053f08dae2 (patch)
tree21f88abdc7bffe6b4b5dcb07bbd10b2eb3820759 /emscripten.py
parent5940f5fc55f36e55466716514945cb6ac54c4634 (diff)
support disabling ALIASING_FUNCTION_POINTERS in fastcomp
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/emscripten.py b/emscripten.py
index c8fab3be..835b1ec9 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -748,6 +748,8 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None,
backend_args += ['-emscripten-reserved-function-pointers=%d' % settings['RESERVED_FUNCTION_POINTERS']]
if settings['ASSERTIONS'] > 0:
backend_args += ['-emscripten-assertions=%d' % settings['ASSERTIONS']]
+ if settings['ALIASING_FUNCTION_POINTERS'] == 0:
+ backend_args += ['-emscripten-no-aliasing-function-pointers']
backend_args += ['-O' + str(settings['OPT_LEVEL'])]
if DEBUG:
logging.debug('emscript: llvm backend: ' + ' '.join(backend_args))