diff options
author | Sam Clegg <sbc@chromium.org> | 2022-01-18 17:53:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 01:53:31 +0000 |
commit | 59494a57abf7873e09fd4fba8e0413f649b64525 (patch) | |
tree | 390ba32a3c9e30382e3f898549f272d712cd9eed /scripts/test/lld.py | |
parent | ed5aaa6d261e3692161106695f50e438d5fb6f5f (diff) | |
download | binaryen-59494a57abf7873e09fd4fba8e0413f649b64525.tar.gz binaryen-59494a57abf7873e09fd4fba8e0413f649b64525.tar.bz2 binaryen-59494a57abf7873e09fd4fba8e0413f649b64525.zip |
Add --no-emit-metadata option to wasm-emscripten-finalize (#4450)
This is useful for the case where we might want to finalize
without extracting metadata.
See: https://github.com/emscripten-core/emscripten/pull/15918
Diffstat (limited to 'scripts/test/lld.py')
-rw-r--r-- | scripts/test/lld.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/test/lld.py b/scripts/test/lld.py index 1c632b957..2fc3261a8 100644 --- a/scripts/test/lld.py +++ b/scripts/test/lld.py @@ -26,6 +26,8 @@ def args_for_finalize(filename): ret += ['--side-module'] if 'standalone-wasm' in filename: ret += ['--standalone-wasm'] + if 'no-emit-metadata' in filename: + ret += ['--no-emit-metadata'] return ret @@ -57,7 +59,7 @@ def run_test(input_path): actual = support.run_command(cmd) shared.fail_if_not_identical_to_file(actual, expected_file) - if ext == '.out': + if ext == '.out' and '--no-emit-metadata' not in cmd: start = actual.find('--BEGIN METADATA --\n') end = actual.find('-- END METADATA --\n') if start == -1 or end == -1: |