From 6d867a75ab1291a26cc1af5ae2655d82e9f88af3 Mon Sep 17 00:00:00 2001 From: Johan Brandhorst Date: Sun, 21 Apr 2019 10:19:14 +0100 Subject: [PATCH] Remove debug from tinygo build, use release image --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 973e0a0..a7e3ec5 100644 --- a/Makefile +++ b/Makefile @@ -6,10 +6,10 @@ hello: clean .PHONY: tinygo tinygo: clean - docker run --rm -v $$(pwd):/go/src/github.com/johanbrandhorst/wasm-experiments --entrypoint /bin/bash tinygo/tinygo:latest -c "\ + docker run --rm -v $$(pwd):/go/src/github.com/johanbrandhorst/wasm-experiments tinygo/tinygo:0.5.0 /bin/bash -c "\ cd /go/src/github.com/johanbrandhorst/wasm-experiments && \ - tinygo build -o ./html/test.wasm -target wasm ./$(target)/main.go && \ - cp /go/src/github.com/tinygo-org/tinygo/targets/wasm_exec.js ./html/wasm_exec.js\ + tinygo build -o ./html/test.wasm -target wasm --no-debug ./$(target)/main.go && \ + cp /usr/local/tinygo/targets/wasm_exec.js ./html/wasm_exec.js\ " cp $$(go env GOROOT)/misc/wasm/wasm_exec.html ./html/index.html