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:
2
.github/workflows/examples.yaml
vendored
2
.github/workflows/examples.yaml
vendored
@@ -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:
|
||||
|
||||
8
Makefile
8
Makefile
@@ -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
|
||||
|
||||
BIN
examples/wasi/testdata/cat.wasm
vendored
BIN
examples/wasi/testdata/cat.wasm
vendored
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