Switches TinyGo to build without debug (#492)

We don't currently read DWARF, and are checking in Wasm binaries to
source that include it. This changes the settings to not include that,
so that our git pull performance doesn't degrade over time.

Note: This keeps the name section, so our current panics will be able to
show the source functions same as before.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2022-04-21 14:34:05 +08:00
committed by GitHub
parent d238a004a8
commit cbd22d49d2
4 changed files with 6 additions and 4 deletions

View File

@@ -5,12 +5,14 @@ on:
paths:
- '.github/workflows/examples.yaml'
- 'examples/*/testdata/*.go'
- 'examples/*/*/testdata/*.go'
- 'Makefile'
push:
branches: [main]
paths:
- '.github/workflows/examples.yaml'
- 'examples/*/testdata/*.go'
- 'examples/*/*/testdata/*.go'
- 'Makefile'
jobs:

View File

@@ -15,12 +15,12 @@ bench_testdata_dir := internal/integration_test/bench/testdata
.PHONY: build.bench
build.bench:
tinygo build -o $(bench_testdata_dir)/case.wasm -scheduler=none -target=wasi $(bench_testdata_dir)/case.go
@tinygo build -o $(bench_testdata_dir)/case.wasm -scheduler=none --no-debug -target=wasi $(bench_testdata_dir)/case.go
wasi_testdata_dir := ./examples/*/testdata
tinygo_sources := $(wildcard examples/*/testdata/*.go examples/*/*/testdata/*.go)
.PHONY: build.examples
build.examples:
@find $(wasi_testdata_dir) -type f -name "*.go" | xargs -Ip /bin/sh -c 'tinygo build -o $$(echo p | sed -e 's/\.go/\.wasm/') -scheduler=none -target=wasi p'
build.examples: $(tinygo_sources)
@echo $< | xargs -Ip /bin/sh -c 'tinygo build -o $$(echo p | sed -e 's/\.go/\.wasm/') -scheduler=none --no-debug --target=wasi p'
spectest_testdata_dir := internal/integration_test/spectest/testdata
spec_version := wg-1.0

Binary file not shown.