aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-13 12:20:45 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-13 12:20:45 -0800
commit9071942043abc0000a3fa1a68f34887657275a2c (patch)
tree605bfa623e8293341b5102a2ef6020c50d542d87 /tests/runner.py
parent09f3e4c41358e74b34b06a755372847577dce34f (diff)
llvm opts in emcc (untested)
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 67684470..b0125f12 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -81,7 +81,8 @@ class RunnerCore(unittest.TestCase):
need_post = build_ll_hook(filename)
Building.llvm_as(filename)
shutil.move(filename + '.o.ll', filename + '.o.ll.pre') # for comparisons later
- Building.llvm_opts(filename)
+ if Building.LLVM_OPTS:
+ Building.llvm_opts(filename)
Building.llvm_dis(filename)
if build_ll_hook and need_post:
build_ll_hook(filename)
@@ -4958,8 +4959,7 @@ Options that are modified or new in %s include:
# emcc --llvm-opts=x .. ==> pick level of LLVM optimizations (default is 0, to be safe?)
- # When doing unsafe opts, can we run -Ox on the source, not just at the very end?
- # In fact we can run safe opts at that time too, now we are a gcc replacement. Removes the entire need for llvm opts only at the end.
+ # We can run safe opts at each emcc invocation, now we are a gcc replacement. Removes the entire need for llvm opts only at the end.
# linking - TODO. in particular, test normal project linking, static and dynamic: get_library should not need to be told what to link!
# emcc a.cpp b.cpp => one .js
# emcc a.cpp b.cpp -c => two .o files