mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/ld: darwin support for host linking
R=ken2 CC=golang-dev https://golang.org/cl/7626045
This commit is contained in:
parent
9e13803ae1
commit
3b85b724c5
11 changed files with 341 additions and 105 deletions
|
|
@ -77,6 +77,10 @@ go run $GOROOT/test/run.go - .
|
|||
[ "$GOHOSTOS" == openbsd ] || # issue 4878
|
||||
(xcd ../misc/cgo/test
|
||||
go test
|
||||
case "$GOHOSTOS-$GOARCH" in
|
||||
darwin-386 | darwin-amd64 | linux-386 | linux-amd64)
|
||||
go test -ldflags '-w -hostobj'
|
||||
esac
|
||||
) || exit $?
|
||||
|
||||
[ "$CGO_ENABLED" != 1 ] ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue