mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09: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
Notes:
sideshowbarker
2024-07-18 11:56:51 +09:00
Author: https://github.com/alimpfard
Commit: 79d4913f76
Pull-request: https://github.com/SerenityOS/serenity/pull/8180
Reviewed-by: https://github.com/linusg
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