]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/testplugin: pass GO_GCFLAGS
authorDavid Crawshaw <crawshaw@golang.org>
Sat, 9 Sep 2017 15:54:15 +0000 (15:54 +0000)
committerDavid Crawshaw <crawshaw@golang.org>
Sun, 10 Sep 2017 14:00:18 +0000 (14:00 +0000)
commit753bac3a55359b9f19565143eef6179a404bdeea
tree62e2ffe37905609f25d4e87a7b1a2f95379f76bf
parent1134411a833caa79017a1fffb9dd9afb102d5da9
misc/cgo/testplugin: pass GO_GCFLAGS

The noopt builder sets GO_GCFLAGS when building the standard library.
Set it when building plugins to ensure the -shared packages built for it
have the same inlining in the export data (and thus the same package
version).

Tested locally with GO_GCFLAGS="-N -l" ./all.bash

Fixes #17937

Change-Id: Id037cfbf4af744c05c47bdc58eea60a5dba69533
Reviewed-on: https://go-review.googlesource.com/62511
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testplugin/test.bash
src/cmd/dist/test.go