1
0
mirror of https://github.com/golang/go synced 2024-09-29 13:24:28 -06:00

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>
This commit is contained in:
Austin Clements 2020-04-08 12:16:38 -04:00
parent 52dc1f42b3
commit f4827240db
2 changed files with 0 additions and 4 deletions

View File

@ -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) {

View File

@ -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) {