Skip to content

Commit c080d03

Browse files
cmd/dist: pass -Wno-unknown-warning-option in swig_callback_lto
For #46557 Fixes #46991 Change-Id: Ic88ebaa13d3edf904657dc19ada4fd4ff7f44a8f Reviewed-on: https://go-review.googlesource.com/c/go/+/332010 Trust: Ian Lance Taylor <[email protected]> Trust: Josh Bleecher Snyder <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Josh Bleecher Snyder <[email protected]>
1 parent 7d0e9e6 commit c080d03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cmd/dist/test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,9 +737,9 @@ func (t *tester) registerTests() {
737737
fn: func(dt *distTest) error {
738738
cmd := t.addCmd(dt, "misc/swig/callback", t.goTest())
739739
cmd.Env = append(os.Environ(),
740-
"CGO_CFLAGS=-flto -Wno-lto-type-mismatch",
741-
"CGO_CXXFLAGS=-flto -Wno-lto-type-mismatch",
742-
"CGO_LDFLAGS=-flto -Wno-lto-type-mismatch",
740+
"CGO_CFLAGS=-flto -Wno-lto-type-mismatch -Wno-unknown-warning-option",
741+
"CGO_CXXFLAGS=-flto -Wno-lto-type-mismatch -Wno-unknown-warning-option",
742+
"CGO_LDFLAGS=-flto -Wno-lto-type-mismatch -Wno-unknown-warning-option",
743743
)
744744
return nil
745745
},

0 commit comments

Comments
 (0)