From: Michael Matloob Date: Tue, 18 Apr 2023 15:20:58 +0000 (-0400) Subject: cmd/go: stub out gotoolchain.go for wasip1 os build tag X-Git-Tag: go1.21rc1~865 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2c64b50d3abbf3f96b3923827776747f2048d8df;p=gostls13.git cmd/go: stub out gotoolchain.go for wasip1 os build tag There's a stub for gotoolchain.go for the js build tag because js/wasm doesn't define syscall.Exec. But there are builders that are wasm but not js, which also don't have syscall.Exec. The wasip1 GOOS is one example. Stub out gotoolchain.go for wasip1 also. Change-Id: I224bb385474ad9c5d3c28a83a000f450dfb43c0d Reviewed-on: https://go-review.googlesource.com/c/go/+/485735 TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills Reviewed-by: Michael Matloob Run-TryBot: Michael Matloob --- diff --git a/src/cmd/go/gotoolchain.go b/src/cmd/go/gotoolchain.go index 5b7468f21f..1552d08ef3 100644 --- a/src/cmd/go/gotoolchain.go +++ b/src/cmd/go/gotoolchain.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !js +//go:build !js && !wasip1 package main diff --git a/src/cmd/go/gotoolchain_js.go b/src/cmd/go/gotoolchain_stub.go similarity index 91% rename from src/cmd/go/gotoolchain_js.go rename to src/cmd/go/gotoolchain_stub.go index 0042ef30c8..9d1d7dbd46 100644 --- a/src/cmd/go/gotoolchain_js.go +++ b/src/cmd/go/gotoolchain_stub.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build js +//go:build js || wasip1 package main