aboutsummaryrefslogtreecommitdiffhomepage
path: root/goenv
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2024-07-02 07:02:03 -0700
committerGitHub <[email protected]>2024-07-02 07:02:03 -0700
commit9cb263479c4b98f2d28889ca1acc297454e0d875 (patch)
treea30bcf8ef9086c5b8edfcee3b42bef352f396878 /goenv
parentf18c6e342f834988caf43fd652b2baae9c3093f0 (diff)
downloadtinygo-9cb263479c4b98f2d28889ca1acc297454e0d875.tar.gz
tinygo-9cb263479c4b98f2d28889ca1acc297454e0d875.zip
wasi preview 2 support (#4027)
* all: wasip2 support Co-authored-by: Randy Reddig <[email protected]>
Diffstat (limited to 'goenv')
-rw-r--r--goenv/goenv.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/goenv/goenv.go b/goenv/goenv.go
index be1c631ca..187bcc6df 100644
--- a/goenv/goenv.go
+++ b/goenv/goenv.go
@@ -159,6 +159,11 @@ func Get(name string) string {
}
return findWasmOpt()
+ case "WASMTOOLS":
+ if path := os.Getenv("WASMTOOLS"); path != "" {
+ return path
+ }
+ return "wasm-tools"
default:
return ""
}