File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -673,11 +673,6 @@ func init() {
673
673
goarch = buildContext .GOARCH
674
674
goos = buildContext .GOOS
675
675
676
- if _ , ok := osArchSupportsCgo [goos + "/" + goarch ]; ! ok {
677
- fmt .Fprintf (os .Stderr , "cmd/go: unsupported GOOS/GOARCH pair %s/%s\n " , goos , goarch )
678
- os .Exit (2 )
679
- }
680
-
681
676
if goos == "windows" {
682
677
exeSuffix = ".exe"
683
678
}
@@ -1226,6 +1221,11 @@ func allArchiveActions(root *action) []*action {
1226
1221
1227
1222
// do runs the action graph rooted at root.
1228
1223
func (b * builder ) do (root * action ) {
1224
+ if _ , ok := osArchSupportsCgo [goos + "/" + goarch ]; ! ok && buildContext .Compiler == "gc" {
1225
+ fmt .Fprintf (os .Stderr , "cmd/go: unsupported GOOS/GOARCH pair %s/%s\n " , goos , goarch )
1226
+ os .Exit (2 )
1227
+ }
1228
+
1229
1229
// Build list of all actions, assigning depth-first post-order priority.
1230
1230
// The original implementation here was a true queue
1231
1231
// (using a channel) but it had the effect of getting
You can’t perform that action at this time.
0 commit comments