From: Russ Cox Date: Thu, 30 Jul 2015 15:08:15 +0000 (-0400) Subject: crypto/x509: mark root_darwin_armx.go as cgo-only X-Git-Tag: go1.5rc1~88 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ab714a70dcad78e2bd7004638843052343c6f2c4;p=gostls13.git crypto/x509: mark root_darwin_armx.go as cgo-only This allows running a cross-compile like GOOS=darwin GOARCH=arm go build std to check that everything builds. Otherwise there is a redefinition error because both root_nocgo_darwin.go and root_darwin_armx.go supply initSystemRoots. Change-Id: Ic95976b2b698d28c629bfc93d8dac0048b023578 Reviewed-on: https://go-review.googlesource.com/12897 Reviewed-by: Ian Lance Taylor --- diff --git a/src/crypto/x509/root_darwin_arm_gen.go b/src/crypto/x509/root_darwin_arm_gen.go index 40e85b752e..5817158c33 100644 --- a/src/crypto/x509/root_darwin_arm_gen.go +++ b/src/crypto/x509/root_darwin_arm_gen.go @@ -178,6 +178,7 @@ const header = ` // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build cgo // +build darwin // +build arm arm64 diff --git a/src/crypto/x509/root_darwin_armx.go b/src/crypto/x509/root_darwin_armx.go index a3000cc7b5..37675b48a3 100644 --- a/src/crypto/x509/root_darwin_armx.go +++ b/src/crypto/x509/root_darwin_armx.go @@ -4,6 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build cgo // +build darwin // +build arm arm64 ios