cmd/gio: (wasm) support command line flags

Strip also DWARF and the symbol table while here.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-29 13:36:12 +02:00
parent 7182e29d28
commit 5bf5f1e64d
+1
View File
@@ -21,6 +21,7 @@ func buildJS(bi *buildInfo) error {
cmd := exec.Command(
"go",
"build",
"-ldflags=-w -s "+bi.ldflags,
"-o", filepath.Join(out, "main.wasm"),
bi.pkg,
)