]> Cypherpunks repositories - gostls13.git/commit
test/run: make GO_GCFLAGS mean same thing it does during make.bash
authorRuss Cox <rsc@golang.org>
Wed, 8 Jan 2020 16:00:44 +0000 (11:00 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 9 Mar 2020 14:21:42 +0000 (14:21 +0000)
commit7dbf12573f793df84802f0a65b03e8e6d4186a5c
tree9f1d9ecc971f54e499b06278b71b8ee0d269db0d
parentb5c66de0892d0e9f3f59126eeebc31070e79143b
test/run: make GO_GCFLAGS mean same thing it does during make.bash

-gcflags=-flag means apply the flags only to the package named
on the command line (the main package, for these tests).

-gcflags=all=-flag means apply the flags to everything in the build,
including the standard library.

cmd/dist uses -gcflags=all=$GO_GCFLAGS, so test/run should do the same,
as the comment already explains, to avoid rebuilding the entire standard
library without the flags during test/run's builds.

We changed the scope of the flags without a pattern a few releases
ago and missed this one.

Change-Id: I039e60ca619d39e5b502261d4a73e1afc7e3f9fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/213827
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
test/run.go