cpu: darwin/arm64 feature detection

The ARM64 flags were not being correctly set for Mac M series laptops.

Fixes golang/go#43046

Change-Id: I1d884dccd3f3a0a010ad7babbab26b73731ab583
Reviewed-on: https://go-review.googlesource.com/c/sys/+/737260
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
Egon Elbre
2026-03-02 13:52:18 -08:00
committed by Gopher Robot
parent acef38879e
commit 942780bbc1
5 changed files with 153 additions and 17 deletions
+1 -1
View File
@@ -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 !linux && !netbsd && !openbsd && !windows && !darwin && arm64
//go:build !darwin && !linux && !netbsd && !openbsd && !windows && arm64
package cpu