mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
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.
This commit is contained in:
parent
c4b82ace74
commit
79d4913f76
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue