~eliasnaur/gio

6ce224b89fc30a1061f6aca2f6e6216fa9730e09 — Elias Naur 10 months ago 1c5ceab
cmd/gio: don't strip debug info for webassembly builds

The space savings are minimal and we lose function names in the
browser debuggers.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M cmd/gio/jsbuild.go
M cmd/gio/jsbuild.go => cmd/gio/jsbuild.go +1 -1
@@ 21,7 21,7 @@ func buildJS(bi *buildInfo) error {
	cmd := exec.Command(
		"go",
		"build",
		"-ldflags=-w -s "+bi.ldflags,
		"-ldflags="+bi.ldflags,
		"-o", filepath.Join(out, "main.wasm"),
		bi.pkg,
	)