summaryrefslogtreecommitdiff
path: root/scripts/test/s2wasm.py
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@users.noreply.github.com>2018-02-07 14:36:56 -0800
committerGitHub <noreply@github.com>2018-02-07 14:36:56 -0800
commit7c4fe0bc095e067c8605f60a66664bd58bac3ac5 (patch)
treef61db693f26815c2766d957721b051974154a59d /scripts/test/s2wasm.py
parenta3232460dd4dc63b0ed39a68f0bebecc805572d4 (diff)
downloadbinaryen-7c4fe0bc095e067c8605f60a66664bd58bac3ac5.tar.gz
binaryen-7c4fe0bc095e067c8605f60a66664bd58bac3ac5.tar.bz2
binaryen-7c4fe0bc095e067c8605f60a66664bd58bac3ac5.zip
Emscripten addFunction support for Wasm backend (#1395)
This adds necessary command line options for addFunction support, and generates required jsCall imports and generates jsCall thunk functions.
Diffstat (limited to 'scripts/test/s2wasm.py')
-rwxr-xr-xscripts/test/s2wasm.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/test/s2wasm.py b/scripts/test/s2wasm.py
index 405ed5fdf..a3345f87b 100755
--- a/scripts/test/s2wasm.py
+++ b/scripts/test/s2wasm.py
@@ -36,6 +36,7 @@ def test_s2wasm():
'.wast': [],
'.clamp.wast': ['--trap-mode=clamp'],
'.js.wast': ['--trap-mode=js'],
+ '.jscall.wast': ['--emscripten-reserved-function-pointers=3'],
}
for dot_s_dir in ['dot_s', 'llvm_autogenerated']:
dot_s_path = os.path.join(options.binaryen_test, dot_s_dir)