diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-07 13:57:56 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-07 13:57:56 -0800 |
commit | 5f29965db36a71dd1ae192a20d449b37469425bb (patch) | |
tree | 98f25c2f786b0a9e6da1d1341ca97567b817998b | |
parent | 7ec7be9c909d2335c6915dc90dbf5683133822ec (diff) | |
parent | cd536b75c1f33f300513dfbc15c1e67ca01bfd80 (diff) |
Merge branch 'master' into ta2bydefault
-rwxr-xr-x | emscripten.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index e689cc69..4b3740d1 100755 --- a/emscripten.py +++ b/emscripten.py @@ -89,7 +89,9 @@ def optimize(filepath): Returns: The path to the optimized file. """ - command = [shared.LLVM_OPT, '-o=-', filepath] + shared.pick_llvm_opts(3, True) + shared.Building.LLVM_OPTS = 1 + shared.Settings.QUANTUM_SIZE = 1 # just so it isn't 4, and we assume we can do things that fail on q1 + command = [shared.LLVM_OPT, '-o=-', filepath] + shared.Building.pick_llvm_opts(3, True) with get_temp_file('.bc') as out: ret = subprocess.call(command, stdout=out) if ret != 0: raise RuntimeError('Could not optimize %s.' % filepath) return out.name |