summaryrefslogtreecommitdiff
path: root/Meta/generate-libwasm-spec-test.py
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-06-21 21:04:15 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-06-22 00:26:25 +0430
commit79d4913f7640399fd892e8561bb6fe895ce0f41d (patch)
tree79f3e61a5004d85ebb31929fe491ecee594b218d /Meta/generate-libwasm-spec-test.py
parentc4b82ace74069d61d84f8cb5f1298352632bd6ad (diff)
downloadserenity-79d4913f7640399fd892e8561bb6fe895ce0f41d.zip
LibWasm: Generate all spec tests, even ones that aren't valid modules
`wasm-as` will do some semantic analysis on the modules, which is not something we're looking for here. Instead, use `wat2wasm` to generate the exact module.
Diffstat (limited to 'Meta/generate-libwasm-spec-test.py')
-rw-r--r--Meta/generate-libwasm-spec-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/generate-libwasm-spec-test.py b/Meta/generate-libwasm-spec-test.py
index 0cff818d0b..476a8db949 100644
--- a/Meta/generate-libwasm-spec-test.py
+++ b/Meta/generate-libwasm-spec-test.py
@@ -380,7 +380,7 @@ def main():
with NamedTemporaryFile("w+") as temp:
temp.write(mod[1])
temp.flush()
- rc = call(["wasm-as", "-n", "-all", temp.name, "-o", outpath])
+ rc = call(["wat2wasm", temp.name, "-o", outpath])
if rc != 0:
print("Failed to compile", name, "module index", index, "skipping that test", file=stderr)
continue