blob: 2f46a6b44bffe18097aee0a2e606eb274fa13048 [file] [log] [blame]
env GOOS=android GOARCH=amd64 CGO_ENABLED=0
! go build -o $devnull cmd/buildid
stderr 'android/amd64 requires external \(cgo\) linking, but cgo is not enabled'
! stderr 'cannot find runtime/cgo'
! go test -c -o $devnull os
stderr '# os\nandroid/amd64 requires external \(cgo\) linking, but cgo is not enabled'
! stderr 'cannot find runtime/cgo'
env GOOS=ios GOARCH=arm64 CGO_ENABLED=0
! go build -o $devnull cmd/buildid
stderr 'ios/arm64 requires external \(cgo\) linking, but cgo is not enabled'
! stderr 'cannot find runtime/cgo'
! go test -c -o $devnull os
stderr '# os\nios/arm64 requires external \(cgo\) linking, but cgo is not enabled'
! stderr 'cannot find runtime/cgo'