diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-23 13:44:36 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-23 13:44:36 -0800 |
commit | ff69c85ed7d4228b71b712e161c9bbb7464271c5 (patch) | |
tree | 9e56ee8dff1f92d77c47b5e25839bad53565711c /tools/shared.py | |
parent | 61e4b6b9d40c966ead0198e9a9a32d1067273ef7 (diff) |
enable unsafe llvm opts in emcc
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py index f20fc75c..472bfe57 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -540,13 +540,14 @@ class Building: llvm-as < /dev/null | opt -std-compile-opts -disable-output -debug-pass=Arguments ''' opts = [] + assert safe or Settings.USE_TYPED_ARRAYS == 2, 'Cannot do unsafe LLVM opts without typed arrays in mode 2' if optimization_level > 0: - #opts.append('-disable-inlining') # we prefer to let closure compiler do our inlining if not safe: + opts.append('-disable-inlining') # we prefer to let closure compiler do our inlining, to avoid overly aggressive inlining #opts.append('-O%d' % optimization_level) opts.append('-std-compile-opts') opts.append('-std-link-opts') - print 'Unsafe:', opts, + print 'Unsafe:', opts else: allow_nonportable = not safe optimize_size = True |