chore: ensure all tinygo binaries have been built with 0.31.1 (#2140)
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
This commit is contained in:
3
Makefile
3
Makefile
@@ -52,12 +52,13 @@ build.examples.as:
|
||||
build.examples.zig: examples/allocation/zig/testdata/greet.wasm imports/wasi_snapshot_preview1/example/testdata/zig/cat.wasm imports/wasi_snapshot_preview1/testdata/zig/wasi.wasm
|
||||
@cd internal/testing/dwarftestdata/testdata/zig; zig build; mv zig-out/*/main.wasm ./ # Need DWARF custom sections.
|
||||
|
||||
tinygo_sources := examples/basic/testdata/add.go examples/allocation/tinygo/testdata/greet.go examples/cli/testdata/cli.go imports/wasi_snapshot_preview1/example/testdata/tinygo/cat.go imports/wasi_snapshot_preview1/testdata/tinygo/wasi.go
|
||||
tinygo_sources := examples/basic/testdata/add.go examples/allocation/tinygo/testdata/greet.go examples/cli/testdata/cli.go imports/wasi_snapshot_preview1/example/testdata/tinygo/cat.go imports/wasi_snapshot_preview1/testdata/tinygo/wasi.go cmd/wazero/testdata/cat/cat.go
|
||||
.PHONY: build.examples.tinygo
|
||||
build.examples.tinygo: $(tinygo_sources)
|
||||
@for f in $^; do \
|
||||
tinygo build -o $$(echo $$f | sed -e 's/\.go/\.wasm/') -scheduler=none --no-debug --target=wasi $$f; \
|
||||
done
|
||||
@mv cmd/wazero/testdata/cat/cat.wasm cmd/wazero/testdata/cat/cat-tinygo.wasm
|
||||
|
||||
# We use zig to build C as it is easy to install and embeds a copy of zig-cc.
|
||||
# Note: Don't use "-Oz" as that breaks our wasi sock example.
|
||||
|
||||
BIN
cmd/wazero/testdata/cat/cat-tinygo.wasm
vendored
BIN
cmd/wazero/testdata/cat/cat-tinygo.wasm
vendored
Binary file not shown.
@@ -337,9 +337,9 @@ func TestRun(t *testing.T) {
|
||||
<== (opened_fd=4,errno=ESUCCESS)
|
||||
==> wasi_snapshot_preview1.fd_filestat_get(fd=4)
|
||||
<== (filestat={filetype=REGULAR_FILE,size=5,mtim=%d},errno=ESUCCESS)
|
||||
==> wasi_snapshot_preview1.fd_read(fd=4,iovs=64776,iovs_len=1)
|
||||
==> wasi_snapshot_preview1.fd_read(fd=4,iovs=64744,iovs_len=1)
|
||||
<== (nread=5,errno=ESUCCESS)
|
||||
==> wasi_snapshot_preview1.fd_read(fd=4,iovs=64776,iovs_len=1)
|
||||
==> wasi_snapshot_preview1.fd_read(fd=4,iovs=64744,iovs_len=1)
|
||||
<== (nread=0,errno=ESUCCESS)
|
||||
==> wasi_snapshot_preview1.fd_close(fd=4)
|
||||
<== errno=ESUCCESS
|
||||
|
||||
BIN
examples/allocation/tinygo/testdata/greet.wasm
vendored
BIN
examples/allocation/tinygo/testdata/greet.wasm
vendored
Binary file not shown.
BIN
examples/basic/testdata/add.wasm
vendored
BIN
examples/basic/testdata/add.wasm
vendored
Binary file not shown.
BIN
examples/cli/testdata/cli.wasm
vendored
BIN
examples/cli/testdata/cli.wasm
vendored
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
internal/integration_test/bench/testdata/case.wasm
vendored
BIN
internal/integration_test/bench/testdata/case.wasm
vendored
Binary file not shown.
Reference in New Issue
Block a user