diff options
| author | Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> | 2023-03-24 22:44:01 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-03-30 18:50:57 +0000 |
| commit | 8890c3a05f7bf62f455ad2f81a644ba5cae005d8 (patch) | |
| tree | ed02cdc22f03e38b76b73dbb27f9a738ec57faeb /src/cmd/internal | |
| parent | ed9744dff5341ab692154eab1e6e0f1a3c138733 (diff) | |
| download | go-8890c3a05f7bf62f455ad2f81a644ba5cae005d8.tar.xz | |
all: add wasip1 definitions
Add wasip1 GOOS definitions to the compiler and build
definitions.
Co-authored-by: Richard Musiol <neelance@gmail.com>
Co-authored-by: Achille Roussel <achille.roussel@gmail.com>
Co-authored-by: Julien Fabre <ju.pryz@gmail.com>
Co-authored-by: Evan Phoenix <evan@phx.io>
Change-Id: I087e7ff4205a34187bbca18b1693ad911ddd1219
Reviewed-on: https://go-review.googlesource.com/c/go/+/479616
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/cmd/internal')
| -rw-r--r-- | src/cmd/internal/objabi/head.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/internal/objabi/head.go b/src/cmd/internal/objabi/head.go index 763910fbd6..3109b5cb23 100644 --- a/src/cmd/internal/objabi/head.go +++ b/src/cmd/internal/objabi/head.go @@ -46,6 +46,7 @@ const ( Hopenbsd Hplan9 Hsolaris + Hwasip1 Hwindows Haix ) @@ -72,6 +73,8 @@ func (h *HeadType) Set(s string) error { *h = Hplan9 case "illumos", "solaris": *h = Hsolaris + case "wasip1": + *h = Hwasip1 case "windows": *h = Hwindows default: @@ -102,6 +105,8 @@ func (h HeadType) String() string { return "plan9" case Hsolaris: return "solaris" + case Hwasip1: + return "wasip1" case Hwindows: return "windows" } |
