aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/cgo/testcarchive/carchive_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/cgo/testcarchive/carchive_test.go b/misc/cgo/testcarchive/carchive_test.go
index 72e9ef1d59..19c746d49a 100644
--- a/misc/cgo/testcarchive/carchive_test.go
+++ b/misc/cgo/testcarchive/carchive_test.go
@@ -147,7 +147,11 @@ func TestInstall(t *testing.T) {
t.Fatal(err)
}
- compilemain(t, filepath.Join("pkg", GOOS+"_"+GOARCH, "libgo.a"))
+ libgopath := filepath.Join("pkg", GOOS+"_"+GOARCH, "libgo.a")
+ if GOOS == "darwin" && GOARCH == "arm" {
+ libgopath = filepath.Join("pkg", GOOS+"_"+GOARCH+"_shared", "libgo.a")
+ }
+ compilemain(t, libgopath)
binArgs := append(bin, "arg1", "arg2")
if out, err := exec.Command(binArgs[0], binArgs[1:]...).CombinedOutput(); err != nil {