From 07f00cf11e208510fd83b8d7328a52f9c1c97eee Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Wed, 15 Apr 2015 14:47:08 -0400 Subject: [PATCH] cmd/test: require external linking for c-archive Change-Id: I9ceceb29291ea9f5d7b675dfabd665c5e3618471 Reviewed-on: https://go-review.googlesource.com/8955 Reviewed-by: Ian Lance Taylor --- src/cmd/dist/test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index 70187b3c20..44f78d7c13 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -272,7 +272,7 @@ func (t *tester) registerTests() { } else if t.hasBash() && t.goos != "android" && !iOS { t.registerTest("testso", "../misc/cgo/testso", "./test.bash") } - if t.goos == "darwin" && t.goarch == "amd64" { + if t.extLink() && t.goos == "darwin" && t.goarch == "amd64" { // TODO(crawshaw): add darwin/arm{,64} t.registerTest("testcarchive", "../misc/cgo/testcarchive", "./test.bash") } -- 2.48.1