Commit 94ff4793 authored by Ian Lance Taylor's avatar Ian Lance Taylor

misc/cgo/testcarchive: skip test4 on darwin/{arm,arm64}

Fixes #13701.

Change-Id: I9825864d23aeba1971cf5f581e1e59ac4c9b87fd
Reviewed-on: https://go-review.googlesource.com/18090Reviewed-by: default avatarDavid Crawshaw <crawshaw@golang.org>
parent 11ac72a1
...@@ -54,12 +54,19 @@ if ! $bin arg1 arg2; then ...@@ -54,12 +54,19 @@ if ! $bin arg1 arg2; then
fi fi
rm -rf libgo.a libgo.h testp pkg rm -rf libgo.a libgo.h testp pkg
GOPATH=$(pwd) go build -buildmode=c-archive -o libgo2.a libgo2 case "$(go env GOOS)/$(go env GOARCH)" in
$(go env CC) $(go env GOGCCFLAGS) $ccargs -o testp main2.c libgo2.a "darwin/arm" | "darwin/arm64")
if ! $bin; then echo "Skipping test4; see https://golang.org/issue/13701"
;;
*)
GOPATH=$(pwd) go build -buildmode=c-archive -o libgo2.a libgo2
$(go env CC) $(go env GOGCCFLAGS) $ccargs -o testp main2.c libgo2.a
if ! $bin; then
echo "FAIL test4" echo "FAIL test4"
status=1 status=1
fi fi
rm -rf libgo2.a libgo2.h testp pkg rm -rf libgo2.a libgo2.h testp pkg
;;
esac
exit $status exit $status
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment