mirror of
https://github.com/golang/sys.git
synced 2026-02-09 04:06:04 +03:00
all: add GOOS=ios
Following CL 254740, this CL does it on x/sys. Updates golang/go#38485. Change-Id: I5eab09a9a87c87fc883b5701434415648fb28eb0 Reviewed-on: https://go-review.googlesource.com/c/sys/+/255557 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
@@ -39,7 +39,7 @@ func initOptions() {
|
||||
|
||||
func archInit() {
|
||||
switch runtime.GOOS {
|
||||
case "android", "darwin", "netbsd":
|
||||
case "android", "darwin", "ios", "netbsd":
|
||||
// Android and iOS don't seem to allow reading these registers.
|
||||
//
|
||||
// NetBSD:
|
||||
|
||||
@@ -31,7 +31,7 @@ func TestAVX2hasAVX(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestARM64minimalFeatures(t *testing.T) {
|
||||
if runtime.GOARCH != "arm64" || runtime.GOOS == "darwin" {
|
||||
if runtime.GOARCH != "arm64" || (runtime.GOOS == "darwin" || runtime.GOOS == "ios") {
|
||||
return
|
||||
}
|
||||
if !cpu.ARM64.HasASIMD {
|
||||
|
||||
Reference in New Issue
Block a user