From 6ce224b89fc30a1061f6aca2f6e6216fa9730e09 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 2 Aug 2019 15:48:27 +0200 Subject: [PATCH] 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 --- cmd/gio/jsbuild.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gio/jsbuild.go b/cmd/gio/jsbuild.go index 3dec5938..5f84745c 100644 --- a/cmd/gio/jsbuild.go +++ b/cmd/gio/jsbuild.go @@ -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, )