mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
cmd/dist: enable additional cgo tests on openbsd architectures
OpenBSD gained __thread support quite some time ago. Change-Id: I7de0a5c0c4de1a7ce59e48ac939fc2daf56be8f5 Reviewed-on: https://go-review.googlesource.com/c/go/+/267318 Trust: Joel Sing <joel@sing.id.au> Reviewed-by: Cherry Zhang <cherryyz@google.com> Run-TryBot: Joel Sing <joel@sing.id.au> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
5f0fca1475
commit
594b4a3bfe
4
src/cmd/dist/test.go
vendored
4
src/cmd/dist/test.go
vendored
|
@ -1095,7 +1095,6 @@ func (t *tester) cgoTest(dt *distTest) error {
|
|||
pair := gohostos + "-" + goarch
|
||||
switch pair {
|
||||
case "darwin-amd64", "darwin-arm64",
|
||||
"openbsd-386", "openbsd-amd64",
|
||||
"windows-386", "windows-amd64":
|
||||
// test linkmode=external, but __thread not supported, so skip testtls.
|
||||
if !t.extLink() {
|
||||
|
@ -1118,7 +1117,8 @@ func (t *tester) cgoTest(dt *distTest) error {
|
|||
"dragonfly-amd64",
|
||||
"freebsd-386", "freebsd-amd64", "freebsd-arm",
|
||||
"linux-386", "linux-amd64", "linux-arm", "linux-arm64", "linux-ppc64le", "linux-riscv64", "linux-s390x",
|
||||
"netbsd-386", "netbsd-amd64":
|
||||
"netbsd-386", "netbsd-amd64",
|
||||
"openbsd-386", "openbsd-amd64", "openbsd-arm", "openbsd-arm64", "openbsd-mips64":
|
||||
|
||||
cmd := t.addCmd(dt, "misc/cgo/test", t.goTest())
|
||||
cmd.Env = append(os.Environ(), "GOFLAGS=-ldflags=-linkmode=external")
|
||||
|
|
Loading…
Reference in a new issue