@@ -351,7 +351,7 @@ func (t *tester) extLink() bool {
351
351
"linux-386" , "linux-amd64" , "linux-arm" ,
352
352
"netbsd-386" , "netbsd-amd64" ,
353
353
"openbsd-386" , "openbsd-amd64" ,
354
- "windows-386" :
354
+ "windows-386" , "windows-amd64" :
355
355
return true
356
356
case "darwin-386" , "darwin-amd64" :
357
357
// linkmode=external fails on OS X 10.6 and earlier == Darwin
@@ -370,10 +370,7 @@ func (t *tester) cgoTest() error {
370
370
env := mergeEnvLists ([]string {"GOTRACEBACK=2" }, os .Environ ())
371
371
372
372
iOS := t .goos == "darwin" && (t .goarch == "arm" || t .goarch == "arm64" )
373
- switch {
374
- case t .goos == "windows" && t .goarch != "386" :
375
- fallthrough
376
- case t .goos == "android" , iOS :
373
+ if t .goos == "android" || iOS {
377
374
cmd := t .dirCmd ("misc/cgo/test" , "go" , "test" )
378
375
cmd .Env = env
379
376
return cmd .Run ()
@@ -398,7 +395,7 @@ func (t *tester) cgoTest() error {
398
395
return err
399
396
}
400
397
case "darwin-386" , "darwin-amd64" ,
401
- "windows-386" :
398
+ "windows-386" , "windows-amd64" :
402
399
if t .extLink () {
403
400
cmd := t .dirCmd ("misc/cgo/test" , "go" , "test" , "-ldflags" , "-linkmode=external" )
404
401
cmd .Env = env
0 commit comments