Skip to content

Commit

Permalink
Migrate to the latest toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
caasi committed Jul 4, 2020
1 parent 339a200 commit 9d00deb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/sh
# build and test math functions
wast2wasm --spec ./math.wast -o ./math.json
wast2json ./math.wast -o ./math.json
spectest-interp ./math.json

# rgb2hsv
wast2wasm --spec ./rgb2hsv.wast -o ./rgb2hsv.json
wast2json ./rgb2hsv.wast -o ./rgb2hsv.json
# link and overwrite the output wasm
wasm-link ./math.0.wasm ./rgb2hsv.0.wasm -o ./rgb2hsv.0.wasm
spectest-interp ./rgb2hsv.json

# hsv2rgb
wast2wasm --spec ./hsv2rgb.wast -o ./hsv2rgb.json
wast2json ./hsv2rgb.wast -o ./hsv2rgb.json
wasm-link ./math.0.wasm ./hsv2rgb.0.wasm -o ./hsv2rgb.0.wasm
spectest-interp ./hsv2rgb.json

0 comments on commit 9d00deb

Please sign in to comment.