summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2016-04-13 16:10:15 -0700
committerDerek Schuff <dschuff@chromium.org>2016-04-13 16:10:15 -0700
commitb3f9bb4c4a2f919ae0d73aa880609ad51abdc6b8 (patch)
tree2178bb2a33cc21ad9c6ab48ca18293343241ad39 /auto_update_tests.py
parentf2753329c4c647cc6950f62f944a39de06ab4c88 (diff)
downloadbinaryen-b3f9bb4c4a2f919ae0d73aa880609ad51abdc6b8.tar.gz
binaryen-b3f9bb4c4a2f919ae0d73aa880609ad51abdc6b8.tar.bz2
binaryen-b3f9bb4c4a2f919ae0d73aa880609ad51abdc6b8.zip
Generate emscripten dynCall thunks in s2wasm (#342)
* Generate emscripten dynCall thunks in s2wasm Part of the usual emscripten glue for asm.js is thunks for calling functions on the module given a function pointer; aka a dynCall. This is implemented via thunks generated on the Module called 'dynCall_<signature>'. This gives support to s2wasm to generate these thunks in the wasm module along with other emscripten glue. It also introduces a flag to s2wasm to make generation of emscripten glue optional.
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index f0cba64ef..8cd2651ee 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -31,7 +31,7 @@ for dot_s_dir in ['dot_s', 'llvm_autogenerated']:
wasm = s.replace('.s', '.wast')
full = os.path.join('test', dot_s_dir, s)
stack_alloc = ['--allocate-stack=1024'] if dot_s_dir == 'llvm_autogenerated' else []
- cmd = [os.path.join('bin', 's2wasm'), full] + stack_alloc
+ cmd = [os.path.join('bin', 's2wasm'), full, '--emscripten-glue'] + stack_alloc
if s.startswith('start_'):
cmd.append('--start')
actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()