mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +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
6
.github/workflows/cmake.yml
vendored
6
.github/workflows/cmake.yml
vendored
|
@ -196,15 +196,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get purge -y clang-11
|
sudo apt-get purge -y clang-11
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install ninja-build binaryen
|
sudo apt-get install ninja-build wabt
|
||||||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 100
|
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 100
|
||||||
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 100
|
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 100
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
- name: Install macOS dependencies
|
- name: Install macOS dependencies
|
||||||
run: brew install ninja binaryen
|
run: brew install ninja wabt
|
||||||
if: ${{ runner.os == 'macOS' }}
|
if: ${{ runner.os == 'macOS' }}
|
||||||
- name: Check versions
|
- name: Check versions
|
||||||
run: set +e; clang --version; clang++ --version; ninja --version; wasm-as --version
|
run: set +e; clang --version; clang++ --version; ninja --version; wat2wasm --version
|
||||||
|
|
||||||
# === PREPARE FOR BUILDING ===
|
# === PREPARE FOR BUILDING ===
|
||||||
|
|
||||||
|
|
|
@ -380,7 +380,7 @@ def main():
|
||||||
with NamedTemporaryFile("w+") as temp:
|
with NamedTemporaryFile("w+") as temp:
|
||||||
temp.write(mod[1])
|
temp.write(mod[1])
|
||||||
temp.flush()
|
temp.flush()
|
||||||
rc = call(["wasm-as", "-n", "-all", temp.name, "-o", outpath])
|
rc = call(["wat2wasm", temp.name, "-o", outpath])
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
print("Failed to compile", name, "module index", index, "skipping that test", file=stderr)
|
print("Failed to compile", name, "module index", index, "skipping that test", file=stderr)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue