baremetal,wasm: support command line params and environment variables

This is mainly useful to be able to run `tinygo test`, for example:

    tinygo test -target=cortex-m-qemu -v math

This is not currently supported, but will be in the future.
This commit is contained in:
Ayke van Laethem
2021-08-10 21:35:52 +02:00
committed by Ron Evans
parent c25a7cc747
commit f57e9622fd
6 changed files with 126 additions and 37 deletions
-5
View File
@@ -15,11 +15,6 @@ func _start() {
run()
}
//go:linkname syscall_runtime_envs syscall.runtime_envs
func syscall_runtime_envs() []string {
return nil
}
var handleEvent func()
//go:linkname setEventHandler syscall/js.setEventHandler