mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
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:
@@ -21,6 +21,7 @@ func buildJS(bi *buildInfo) error {
|
|||||||
cmd := exec.Command(
|
cmd := exec.Command(
|
||||||
"go",
|
"go",
|
||||||
"build",
|
"build",
|
||||||
|
"-ldflags=-w -s "+bi.ldflags,
|
||||||
"-o", filepath.Join(out, "main.wasm"),
|
"-o", filepath.Join(out, "main.wasm"),
|
||||||
bi.pkg,
|
bi.pkg,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user