Commit Graph

5 Commits

Author SHA1 Message Date
Elias Naur 6ce224b89f 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>
2019-08-02 15:48:27 +02:00
Elias Naur 1c5ceab9c1 cmd/gio: don't add a container div for -target js
THe webassembly backend can create and add it itself.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-02 09:05:34 +02:00
Elias Naur 5bf5f1e64d cmd/gio: (wasm) support command line flags
Strip also DWARF and the symbol table while here.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-07-29 13:36:12 +02:00
Elias Naur cde040369c cmd/gio: use the import path as basis for the output file
Before this change `go list <pkg>` was used to sanitize the import
path of the package argument. That doesn't work well for building
Go source files directly:

gio -target android helloworld.go

where `go list helloworld.go` simply returns "command-line-arguments".

A better way is to leave the package path alone, and compute the
output file separately from the import path, as reported by
`go list -f {{.ImportPath}} <pkg>`.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-07-13 20:19:25 +02:00
Elias Naur 441ca835c3 cmd/gio: add -target=js support for creating webassembly packages
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-06-09 14:58:00 +02:00