]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: iOS build tag
authorDavid Crawshaw <crawshaw@golang.org>
Thu, 16 Jul 2015 17:14:56 +0000 (13:14 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Thu, 16 Jul 2015 19:10:11 +0000 (19:10 +0000)
The iOS simulator compiles with GOOS=darwin GOARCH=386, and x509
sets the inappropriate flag -mmacosx-version-min=10.6. Condition
its compilation on the absence of an "ios" build tag.

Fixes #11736.

Change-Id: I4aa230643347320c3cb9d03b972734b2e0db930e
Reviewed-on: https://go-review.googlesource.com/12301
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/x509/root_cgo_darwin.go
src/crypto/x509/root_darwin_armx.go

index 9fb08ddf0bd04a0cdbf6b391fe122488be691ca9..bf4a5cdfeeef2fcf15475e300fa332c74ba9bb8c 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build cgo,!arm,!arm64
+// +build cgo,!arm,!arm64,!ios
 
 package x509
 
index 62b7d24c9110006afd4b744131447411abba4654..a3000cc7b52f89396db1aa3db8be90bfb1d3dbe1 100644 (file)
@@ -5,7 +5,7 @@
 // license that can be found in the LICENSE file.
 
 // +build darwin
-// +build arm arm64
+// +build arm arm64 ios
 
 package x509