]> Cypherpunks repositories - gostls13.git/commit
cmd/link: ensure cgo cflags do not leak into tvOS test
authorCarlos Amedee <carlos@golang.org>
Wed, 22 Jan 2020 20:30:52 +0000 (15:30 -0500)
committerCarlos Amedee <carlos@golang.org>
Thu, 23 Jan 2020 21:01:12 +0000 (21:01 +0000)
commitace25f82df0a27eb26a518e1883eb56c1bec6c5e
tree8681d29aafdb50f3ae7462ba8637a0965111f788
parent8453844ed774b0f864d28cb83844402c63db2849
cmd/link: ensure cgo cflags do not leak into tvOS test

Running the 'TestBuildForTvOS' test with CGO_CFLAGS set
with certain values would cause the test to fail. all.bash
would fail when CGO_CFLAGS was set to '-mmacosx-version-min=10.10'
because the --macosx-version-min flag is incompatible with tvOS.
The change guards against using an unintended flag in the unit test.

Updates #35459

Change-Id: Ifc43f3ebfb23d37aabeaac2ea9efae5b877991bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/215957
Run-TryBot: Carlos Amedee <carlos@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/link_test.go