]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: tidy darwin/arm64 build tags
authorAustin Clements <austin@google.com>
Wed, 8 Apr 2020 16:16:38 +0000 (12:16 -0400)
committerAustin Clements <austin@google.com>
Wed, 8 Apr 2020 19:25:32 +0000 (19:25 +0000)
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>
src/crypto/x509/root_darwin_arm64.go
src/crypto/x509/root_darwin_arm_gen.go

index 67615fd9f2e458ebd1fccde3cf04fea8db83cb6b..bfbfee190135a7b285aeb96ea8f35ded0ca48bf9 100644 (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) {
index 5bb0bd22d1a9f3bea115b117801b2528e21ab953..0bd480b45d4f1f6d1c35ba3ab48e4d179fe1bc93 100644 (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) {