diff --git a/test/abi/regabipragma.go b/test/abi/regabipragma.go index 6a1b1938ea..e7ecd58fc8 100644 --- a/test/abi/regabipragma.go +++ b/test/abi/regabipragma.go @@ -1,4 +1,4 @@ -// runindir +// runindir -gcflags=-c=1 // +build !windows // Copyright 2021 The Go Authors. All rights reserved. diff --git a/test/run.go b/test/run.go index 116f983a97..dba4d16d63 100644 --- a/test/run.go +++ b/test/run.go @@ -902,6 +902,7 @@ func (t *test) run() { if *linkshared { cmd = append(cmd, "-linkshared") } + cmd = append(cmd, flags...) cmd = append(cmd, ".") out, err := runcmd(cmd...) if err != nil {