aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-04 18:19:37 -0500
committerAlon Zakai <alonzakai@gmail.com>2014-02-04 18:19:37 -0500
commit1968ba1aa8a899193483c917e8c2534a4836e4fa (patch)
tree32344c67e35d7bbf410ed66517ac23549fffcc31 /emscripten.py
parent42c6bbe2eaa2f1ceedb8c0b9d4d44bb8b676dcb8 (diff)
WARN_UNALIGNED option for 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 b75df587..c96c56a0 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -742,6 +742,8 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None,
backend_args = [backend_compiler, infile, '-march=js', '-filetype=asm', '-o', temp_js]
if settings['PRECISE_F32']:
backend_args += ['-emscripten-precise-f32']
+ if settings['WARN_UNALIGNED']:
+ backend_args += ['-emscripten-warn-unaligned']
if DEBUG:
logging.debug('emscript: llvm backend: ' + ' '.join(backend_args))
t = time.time()