Skip to content

Commit

Permalink
all: remove darwin/arm build-tags and files
Browse files Browse the repository at this point in the history
This removes all files that are only used on darwin/arm and cleans up
build tags in files that are still used on other platforms.

Updates #37611.

Change-Id: Ic9490cf0edfc157c6276a7ca950c1768b34a998f
Reviewed-on: https://go-review.googlesource.com/c/go/+/227197
Run-TryBot: Austin Clements <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Cherry Zhang <[email protected]>
  • Loading branch information
aclements committed Apr 8, 2020
1 parent 79b6900 commit da8591b
Show file tree
Hide file tree
Showing 25 changed files with 10 additions and 5,848 deletions.
2 changes: 1 addition & 1 deletion src/crypto/x509/root_cgo_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,!ios
// +build cgo,!arm64,!ios

package x509

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/crypto/x509/root_darwin_arm_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// +build ignore

// Generates root_darwin_armx.go.
// Generates root_darwin_arm64.go.
//
// As of iOS 8, there is no API for querying the system trusted X.509 root
// certificates. We could use SecTrustEvaluate to verify that a trust chain
Expand Down Expand Up @@ -33,7 +33,7 @@ import (
"strings"
)

var output = flag.String("output", "root_darwin_armx.go", "file name to write")
var output = flag.String("output", "root_darwin_arm64.go", "file name to write")

func main() {
certs, err := selectCerts()
Expand Down Expand Up @@ -173,8 +173,6 @@ const header = `
// license that can be found in the LICENSE file.
// +build cgo
// +build darwin
// +build arm arm64 ios
package x509
Expand Down
164 changes: 0 additions & 164 deletions src/runtime/cgo/gcc_darwin_arm.c

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
// license that can be found in the LICENSE file.

// +build lldb
// +build darwin
// +build arm arm64

// Used by gcc_signal_darwin_armx.c when doing the test build during cgo.
// Used by gcc_signal_darwin_arm64.c when doing the test build during cgo.
// We hope that for real binaries the definition provided by Go will take precedence
// and the linker will drop this .o file altogether, which is why this definition
// is all by itself in its own file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
// The dist tool enables this by build flag when testing.

// +build lldb
// +build darwin
// +build arm arm64

#include <limits.h>
#include <pthread.h>
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/cgo/gcc_signal_darwin_lldb.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// +build !lldb
// +build darwin
// +build arm arm64
// +build arm64

#include <stdint.h>

Expand Down
49 changes: 0 additions & 49 deletions src/runtime/cgo/signal_darwin_arm.s

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build darwin
// +build arm arm64

package cgo

import _ "unsafe"
Expand Down
Loading

0 comments on commit da8591b

Please sign in to comment.