mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
cpu: fix build for GOARCH=arm64 on GOOS!=linux
The current implementation for arm64 only supports linux (through HWCaps read from /proc/self/auxv) and fails to build e.g. on darwin/arm64. Fixes golang/go#30237 Change-Id: I9f32a285760795441a829b0a81b2d5aff04e2dc4 Reviewed-on: https://go-review.googlesource.com/c/162797 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
983097b1a8
commit
e77772198c
11
cpu/cpu_other_arm64.go
Normal file
11
cpu/cpu_other_arm64.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build !linux,arm64
|
||||
|
||||
package cpu
|
||||
|
||||
const cacheLineSize = 64
|
||||
|
||||
func doinit() {}
|
||||
Reference in New Issue
Block a user