diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-18 13:42:32 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-18 13:42:32 -0700 |
commit | 5685df86fd3a64f5b0e4acfbebab39559b96455d (patch) | |
tree | 721e8c480a7a6c29830eea9e5000236996a864e8 /tests/runner.py | |
parent | cc35ae70ece1f93a23bd666bda395fbb697bbda8 (diff) |
add option to turn all unresolved references into dead functions (i.e., no compile-time warnings or errors, instead runtime aborts
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 5e71e0f6..6ba0bcd7 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10001,7 +10001,7 @@ f.close() (1, 0, 3, 2), (1, 1, 4, 5) ]: print asm, linkable, chunks, js_chunks - output, err = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_libcxx.cpp'), '-O1', '-s', 'LINKABLE=%d' % linkable, '-s', 'ASM_JS=%d' % asm], stdout=PIPE, stderr=PIPE).communicate() + output, err = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_libcxx.cpp'), '-O1', '-s', 'LINKABLE=%d' % linkable, '-s', 'ASM_JS=%d' % asm, '-s', 'UNRESOLVED_AS_DEAD=1'], stdout=PIPE, stderr=PIPE).communicate() assert 'phase 2 working on %d chunks' %chunks in err, err assert 'splitting up js optimization into %d chunks' % js_chunks in err, err finally: |