| 1 |
env GOOS=android GOARCH=amd64 CGO_ENABLED=0 |
| 2 |
|
| 3 |
! go build -o $devnull cmd/buildid |
| 4 |
stderr 'android/amd64 requires external \(cgo\) linking, but cgo is not enabled' |
| 5 |
! stderr 'cannot find runtime/cgo' |
| 6 |
|
| 7 |
! go test -c -o $devnull os |
| 8 |
stderr '# os\nandroid/amd64 requires external \(cgo\) linking, but cgo is not enabled' |
| 9 |
! stderr 'cannot find runtime/cgo' |
| 10 |
|
| 11 |
env GOOS=ios GOARCH=arm64 CGO_ENABLED=0 |
| 12 |
|
| 13 |
! go build -o $devnull cmd/buildid |
| 14 |
stderr 'ios/arm64 requires external \(cgo\) linking, but cgo is not enabled' |
| 15 |
! stderr 'cannot find runtime/cgo' |
| 16 |
|
| 17 |
! go test -c -o $devnull os |
| 18 |
stderr '# os\nios/arm64 requires external \(cgo\) linking, but cgo is not enabled' |
| 19 |
! stderr 'cannot find runtime/cgo' |