File tree Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change 9
9
"fmt"
10
10
"os"
11
11
"runtime"
12
- "strconv"
13
12
"strings"
14
13
)
15
14
@@ -61,6 +60,8 @@ func main() {
61
60
// Even on 64-bit platform, darwin uname -m prints i386.
62
61
// We don't support any of the OS X versions that run on 32-bit-only hardware anymore.
63
62
gohostarch = "amd64"
63
+ // macOS 10.9 and later require clang
64
+ defaultclang = true
64
65
case "freebsd" :
65
66
// Since FreeBSD 10 gcc is no longer part of the base system.
66
67
defaultclang = true
@@ -126,29 +127,6 @@ func main() {
126
127
}
127
128
bginit ()
128
129
129
- // The OS X 10.6 linker does not support external linking mode.
130
- // See golang.org/issue/5130.
131
- //
132
- // OS X 10.6 does not work with clang either, but OS X 10.9 requires it.
133
- // It seems to work with OS X 10.8, so we default to clang for 10.8 and later.
134
- // See golang.org/issue/5822.
135
- //
136
- // Roughly, OS X 10.N shows up as uname release (N+4),
137
- // so OS X 10.6 is uname version 10 and OS X 10.8 is uname version 12.
138
- if gohostos == "darwin" {
139
- rel := run ("" , CheckExit , "uname" , "-r" )
140
- if i := strings .Index (rel , "." ); i >= 0 {
141
- rel = rel [:i ]
142
- }
143
- osx , _ := strconv .Atoi (rel )
144
- if osx <= 6 + 4 {
145
- goextlinkenabled = "0"
146
- }
147
- if osx >= 8 + 4 {
148
- defaultclang = true
149
- }
150
- }
151
-
152
130
if len (os .Args ) > 1 && os .Args [1 ] == "-check-goarm" {
153
131
useVFPv1 () // might fail with SIGILL
154
132
println ("VFPv1 OK." )
You can’t perform that action at this time.
0 commit comments