1
0
mirror of https://github.com/golang/go synced 2024-11-26 14:26:51 -07:00

cmd/dist: pass -Wno-lto-type-mismatch in swig_callback_lto

Fixes #46557

Change-Id: I95200ddd60e2879db15dd7353c2152b515c89020
Reviewed-on: https://go-review.googlesource.com/c/go/+/324909
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
This commit is contained in:
Ian Lance Taylor 2021-06-03 14:15:12 -07:00
parent 909dd5e010
commit dc8b558951

View File

@ -737,9 +737,9 @@ func (t *tester) registerTests() {
fn: func(dt *distTest) error {
cmd := t.addCmd(dt, "misc/swig/callback", t.goTest())
cmd.Env = append(os.Environ(),
"CGO_CFLAGS=-flto",
"CGO_CXXFLAGS=-flto",
"CGO_LDFLAGS=-flto",
"CGO_CFLAGS=-flto -Wno-lto-type-mismatch",
"CGO_CXXFLAGS=-flto -Wno-lto-type-mismatch",
"CGO_LDFLAGS=-flto -Wno-lto-type-mismatch",
)
return nil
},