]> Cypherpunks repositories - gostls13.git/commitdiff
internal/cpu: fix arm64 build
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 14 Nov 2017 18:27:15 +0000 (18:27 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 14 Nov 2017 18:53:53 +0000 (18:53 +0000)
I submitted two CLs which broke the build. Add temporary placeholder
with false bools to fix the build and restore old behavior.

Updates golang/go#22718 (details of why it broke)

Change-Id: I1f30624e14f631a95f4eff5aae462f1091f723a2
Reviewed-on: https://go-review.googlesource.com/77590
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/internal/cpu/cpu_arm64.go

index d3c6cc83051937d8f484f3267a34fc759a2d3482..4d071b3a4e61e2d5e3d2eb8f764706bd853cffb7 100644 (file)
@@ -5,3 +5,10 @@
 package cpu
 
 const CacheLineSize = 64
+
+// TODO: delete this once https://go-review.googlesource.com/c/go/+/76490 lands.
+// These will just be false for now.
+var ARM64 struct {
+       HasSHA1 bool
+       HasSHA2 bool
+}