aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2020-04-08 12:16:38 -0400
committerAustin Clements <austin@google.com>2020-04-08 19:25:32 +0000
commitf4827240dbd29d0c1c308b07c3406f600d5ef82b (patch)
tree04674d0c83915fe2a1adf021afe26ac06a23308d /src
parent52dc1f42b3e30efd0a81f9c0315f9b5ed9f6ec4e (diff)
downloadgo-f4827240dbd29d0c1c308b07c3406f600d5ef82b.tar.xz
crypto/x509: tidy darwin/arm64 build tags
The cgo build tag is not necessary for root_darwin_arm64.go. We can't build for darwin/arm64 without cgo, and even if we did 1) this code would work fine 2) the no-cgo code that shells out to /usr/bin/security would not work. (Suggested by Filippo.) Change-Id: I98cac2ea96ec5ac1ae60b7e32d195d5e86e2bd66 Reviewed-on: https://go-review.googlesource.com/c/go/+/227583 Reviewed-by: Filippo Valsorda <filippo@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/crypto/x509/root_darwin_arm64.go2
-rw-r--r--src/crypto/x509/root_darwin_arm_gen.go2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/crypto/x509/root_darwin_arm64.go b/src/crypto/x509/root_darwin_arm64.go
index 67615fd9f2..bfbfee1901 100644
--- a/src/crypto/x509/root_darwin_arm64.go
+++ b/src/crypto/x509/root_darwin_arm64.go
@@ -4,8 +4,6 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build cgo
-
package x509
func loadSystemRoots() (*CertPool, error) {
diff --git a/src/crypto/x509/root_darwin_arm_gen.go b/src/crypto/x509/root_darwin_arm_gen.go
index 5bb0bd22d1..0bd480b45d 100644
--- a/src/crypto/x509/root_darwin_arm_gen.go
+++ b/src/crypto/x509/root_darwin_arm_gen.go
@@ -172,8 +172,6 @@ const header = `
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build cgo
-
package x509
func loadSystemRoots() (*CertPool, error) {