]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: fix TestArchiveBuildInvokeWithExec
authorCherry Zhang <cherryyz@google.com>
Mon, 4 Nov 2019 21:19:29 +0000 (16:19 -0500)
committerCherry Zhang <cherryyz@google.com>
Mon, 4 Nov 2019 21:38:36 +0000 (21:38 +0000)
commitd9ee4b2859172a84b17eec63d9368e8923896ee4
tree12c66fba04468d4792ed3c8019a86da61feac909
parentd80ab3e85a76581277f62761ae3c22817dab745d
cmd/link/internal/ld: fix TestArchiveBuildInvokeWithExec

TestArchiveBuildInvokeWithExec is failing on darwin due to
duplicated symbols, because the C definition (int fortytwo;) is
copied to two generated cgo sources. In fact, this test is about
building c-archive, but doesn't need to import "C". Removed the
"C" import.

Change-Id: I3a17546e01272a7ae37e6417791ab949fb44597e
Reviewed-on: https://go-review.googlesource.com/c/go/+/205278
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/ld_test.go