diff options
author | Alon Zakai <azakai@google.com> | 2019-09-18 15:11:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-18 15:11:44 -0700 |
commit | 159e9a45877351f89af8ec0a05a7b3fe57d34aad (patch) | |
tree | b427fda2f848aa159380ac75f85d4644ecc9c33e /scripts/test | |
parent | 844998f1b4f4b0f439875e6b36bc6b821be87939 (diff) | |
download | binaryen-159e9a45877351f89af8ec0a05a7b3fe57d34aad.tar.gz binaryen-159e9a45877351f89af8ec0a05a7b3fe57d34aad.tar.bz2 binaryen-159e9a45877351f89af8ec0a05a7b3fe57d34aad.zip |
Add a --standalone-wasm flag to wasm-emscripten-finalize (#2333)
The flag indicates that we want to run the wasm by itself, without JS support. In that case we don't emit JS dynCalls etc., and we also emit a wasi _start if there is a main, i.e., we try to use the current conventions in the wasm-only space.
Diffstat (limited to 'scripts/test')
-rwxr-xr-x | scripts/test/lld.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/test/lld.py b/scripts/test/lld.py index 4aafd9549..7372698cd 100755 --- a/scripts/test/lld.py +++ b/scripts/test/lld.py @@ -26,6 +26,8 @@ def args_for_finalize(filename): return ['--check-stack-overflow', '--global-base=568'] elif 'shared' in filename: return ['--side-module'] + elif 'standalone-wasm' in filename: + return ['--standalone-wasm', '--global-base=568'] else: return ['--global-base=568'] |