aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-11-22 21:34:03 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-11-22 21:34:03 -0800
commit753437a56d63666d0761b66ead1b0d491c4bcb2b (patch)
tree0c6885d1ad2feba99dea7b80a93cc734a197d76d /tests/runner.py
parent718ee071f49d7714da059931d6dab3bedd85ee9d (diff)
emcc stuff
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 480e77ae..121f20b5 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4457,17 +4457,20 @@ TT = %s
class other(RunnerCore):
def test_emcc(self):
pass
+ # TODO: make sure all of these match gcc
+ # -- options: check these, warn about errors. valid gcc ones are help, version. Ours should be -- too, not -.
# emcc src.cpp ==> should give a .js file
# emcc -O0 src.cpp ==> same as without -O0 (i.e., assertions, etc.)
# emcc -O1 src.cpp ==> no assertions, basic optimizations, plus eliminator, but no reloop
# emcc -O2 src.cpp ==> plus reloop
# emcc -O3 src.cpp ==> plus closure compiler
- # emcc -typed-arrays=x .. ==> should use typed arrays
- # emcc -llvm-opts=x .. ==> pick level of LLVM optimizations (default is 0, to be safe)
+ # emcc --typed-arrays=x .. ==> should use typed arrays
+ # emcc --llvm-opts=x .. ==> pick level of LLVM optimizations (default is 0, to be safe)
# emcc src.cpp -c ==> should give a .bc file
# linking - TODO
# annotate each .bc with emscripten info, like "compiled with -O2: do the O2 opts when going to final .js"
# warn if linking files with different annotations etc.
+ # use llvm metadata, example: !0 = metadata !{i32 720913, i32 0, i32 4, metadata !"/dev/shm/tmp/src.cpp", metadata !"/dev/shm/tmp", metadata !"clang version 3.0 (tags/RELEASE_30/rc3)", i1 true, i1 false, metadata !"EMSCRIPTEN:O3", i32 0, metadata !1, metadata !1, metadata !3, metadata !1} ; [ DW_TAG_compile_unit ]
# TODO: when ready, switch tools/shared building to use emcc over emmaken
def test_eliminator(self):