mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
cmd/link: require cgo for -linkmode=external test
For #71416 Fixes #71957 Change-Id: I2180dada34d9dd2d3f5b0aaf8525951fd2e86a27 Reviewed-on: https://go-review.googlesource.com/c/go/+/652277 Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Quim Muntal <quimmuntal@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
983e30bd3b
commit
9cceaf8736
1 changed files with 5 additions and 4 deletions
|
@ -43,6 +43,7 @@ func TestMachoSectionsReadOnly(t *testing.T) {
|
|||
name: "linkmode-external",
|
||||
args: []string{"-ldflags", "-linkmode=external"},
|
||||
prog: prog,
|
||||
mustHaveCGO: true,
|
||||
wantSecsRO: []string{"__got", "__rodata", "__itablink", "__typelink", "__gopclntab"},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue