aboutsummaryrefslogtreecommitdiffhomepage
path: root/loader
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-08-10 21:35:52 +0200
committerRon Evans <[email protected]>2021-08-12 21:19:24 +0200
commitf57e9622fdb650f14a48cc327db01c216cd0d9c6 (patch)
tree1bda50a5662f0571e17a8363a6470b8555e244cf /loader
parentc25a7cc7477a5fc58d68e125ec2cf62836f23fe2 (diff)
downloadtinygo-f57e9622fdb650f14a48cc327db01c216cd0d9c6.tar.gz
tinygo-f57e9622fdb650f14a48cc327db01c216cd0d9c6.zip
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.
Diffstat (limited to 'loader')
-rw-r--r--loader/goroot.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/goroot.go b/loader/goroot.go
index 6770d0458..8f0acf1b8 100644
--- a/loader/goroot.go
+++ b/loader/goroot.go
@@ -208,7 +208,7 @@ func mergeDirectory(goroot, tinygoroot, tmpgoroot, importPath string, overrides
// with the TinyGo version. This is the case on some targets.
func needsSyscallPackage(buildTags []string) bool {
for _, tag := range buildTags {
- if tag == "baremetal" || tag == "darwin" || tag == "nintendoswitch" || tag == "wasi" {
+ if tag == "baremetal" || tag == "darwin" || tag == "nintendoswitch" || tag == "tinygo.wasm" {
return true
}
}