]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/sys: mark windows/arm64 as c-shared-capable
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 11 Jun 2021 15:38:23 +0000 (17:38 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 14 Jun 2021 20:36:54 +0000 (20:36 +0000)
The platform supports c-shared now, so flip this on. I've given this a
small smoke test using [1], and it was able to pass packets and
generally function well. Since [1] uses quite a bit of Go functionality
under the hood, I think it's a decent test that a lot of things that
should be working are working. So this commit enables it.

[1] https://git.zx2c4.com/wireguard-windows/about/embeddable-dll-service/README.md

Updates #46502.

Change-Id: I5c771d033bd20e5ce472c315d7c207bbc1020b4a
Reviewed-on: https://go-review.googlesource.com/c/go/+/326310
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Trust: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/dist/test.go
src/cmd/internal/sys/supported.go

index 1ed2c0f631efc32a6c40387ac08ef817ceb30291..f2c4cf0b4301f86f4b503569e9bb10702b6876eb 100644 (file)
@@ -1057,7 +1057,7 @@ func (t *tester) supportedBuildmode(mode string) bool {
                        "darwin-amd64", "darwin-arm64",
                        "freebsd-amd64",
                        "android-arm", "android-arm64", "android-386",
-                       "windows-amd64", "windows-386":
+                       "windows-amd64", "windows-386", "windows-arm64":
                        return true
                }
                return false
index fa477b837ffa8cb75de61aef204136ed4e1afd01..0d2bad961278f4392c3c27a1ecc4617ac2d9b74c 100644 (file)
@@ -74,7 +74,7 @@ func BuildModeSupported(compiler, buildmode, goos, goarch string) bool {
                        "android/amd64", "android/arm", "android/arm64", "android/386",
                        "freebsd/amd64",
                        "darwin/amd64", "darwin/arm64",
-                       "windows/amd64", "windows/386":
+                       "windows/amd64", "windows/386", "windows/arm64":
                        return true
                }
                return false