diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-12-17 14:03:07 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-12-18 00:10:44 +0000 |
commit | f1778c28a9c6a898e9d78207847d61b189c49b5c (patch) | |
tree | 9bd31f79613c5f2f3b805e2d15d7d173d89ae6d6 /test/sinit_run.go | |
parent | 8fcf318123e15abf6ce35e33831bdb64a4e071ff (diff) | |
download | go-f1778c28a9c6a898e9d78207847d61b189c49b5c.tar.gz go-f1778c28a9c6a898e9d78207847d61b189c49b5c.zip |
test: recognize and use gc build tag
Change the run.go driver to recognize the "gc" build tag.
Change existing tests to use the "gc" build tag if they use some
feature that seems specific to the gc compiler, such as passing specific
options to or expecting specific behavior from "go tool compile".
Change tests to use the "!gccgo" build tag if they use "go build" or
"go run", as while those might work with compilers other than gc, they
won't work with the way that gccgo runs its testsuite (which happens
independently of the go command).
For #43252
Change-Id: I666e04b6d7255a77dfc256ee304094e3a6bb15ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/279052
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'test/sinit_run.go')
-rw-r--r-- | test/sinit_run.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sinit_run.go b/test/sinit_run.go index c37fc9b88c..dcaf338331 100644 --- a/test/sinit_run.go +++ b/test/sinit_run.go @@ -1,4 +1,4 @@ -// +build !nacl,!js +// +build !nacl,!js,gc // run // Copyright 2014 The Go Authors. All rights reserved. |