Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions script/build_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def cd(dst: str) -> typing.Generator[None, typing.Any, None]:

root = os.path.dirname(os.path.dirname(__file__))
os.chdir(root)
wast2json = f'{root}/res/wabt/bin/wast2json'


with cd('res'):
if not os.path.exists('spec'):
Expand All @@ -32,7 +34,7 @@ def cd(dst: str) -> typing.Generator[None, typing.Any, None]:
call('git checkout fffc6e12fa454e475455a7b58d3b5dc343980c10')
with cd('res/spec/test/core'):
for e in sorted(glob.glob('*.wast')):
call(f'{root}/res/wabt/bin/wast2json {e}')
call(f'{wast2json} {e}')
with cd('res/spec/test/core/simd'):
for e in sorted(glob.glob('*.wast')):
call(f'{root}/res/wabt/bin/wast2json {e}')
call(f'{wast2json} {e}')
3 changes: 3 additions & 0 deletions script/build_wabt.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def cd(dst: str) -> typing.Generator[None, typing.Any, None]:
os.chdir(cwd)


root = os.path.dirname(os.path.dirname(__file__))
os.chdir(root)

version = '1.0.37'
url = ''
match platform.system().lower():
Expand Down
3 changes: 3 additions & 0 deletions script/build_wasi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def cd(dst: str) -> typing.Generator[None, typing.Any, None]:
os.chdir(cwd)


root = os.path.dirname(os.path.dirname(__file__))
os.chdir(root)

with cd('res'):
if not os.path.exists('wasi-testsuite'):
call('git clone --branch prod/testsuite-base https://github.com/WebAssembly/wasi-testsuite')
Expand Down