]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/test: require external linking for c-archive
authorDavid Crawshaw <crawshaw@golang.org>
Wed, 15 Apr 2015 18:47:08 +0000 (14:47 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Wed, 15 Apr 2015 22:46:47 +0000 (22:46 +0000)
Change-Id: I9ceceb29291ea9f5d7b675dfabd665c5e3618471
Reviewed-on: https://go-review.googlesource.com/8955
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/test.go

index 70187b3c20fda4cbede206d71ca168cfeac3ce66..44f78d7c13d12e6065a954faa0e6cf54788dbd1e 100644 (file)
@@ -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")
                }