]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: pass cgotest linkmode via GOFLAGS
authorJoel Sing <joel@sing.id.au>
Thu, 28 Mar 2019 14:26:45 +0000 (01:26 +1100)
committerIan Lance Taylor <iant@golang.org>
Thu, 28 Mar 2019 18:26:43 +0000 (18:26 +0000)
commitc196d38d5e1d35c5b1eb1b19648532ea91442979
treeb85ec5f359fa6c75aa4335e80a8388e1d2bac0ef
parentb2f19dad8bb2b942badcc1ea6f7147b11fed926e
cmd/dist: pass cgotest linkmode via GOFLAGS

cgotest attempts to exercise various linkmodes, however with recent refactoring
TestCrossPackageTests is no longer running tests with these linkmodes. Specifying
the linkmode via GOFLAGS restores previous behaviour.

Note that the -ldflags="-linkmode=external -s" case cannot be passed through
as GOFLAGS does not permit spaces in values and -ldflags can only be specified
once.

Fixes #31083.

Change-Id: I2ce6c60da3f3d60495af283ea9122fb68a7a4f41
Reviewed-on: https://go-review.googlesource.com/c/go/+/169779
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/test.go