summaryrefslogtreecommitdiff
path: root/test/linkx_run.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-12-17 14:03:07 -0800
committerIan Lance Taylor <iant@golang.org>2020-12-18 00:10:44 +0000
commitf1778c28a9c6a898e9d78207847d61b189c49b5c (patch)
tree9bd31f79613c5f2f3b805e2d15d7d173d89ae6d6 /test/linkx_run.go
parent8fcf318123e15abf6ce35e33831bdb64a4e071ff (diff)
downloadgo-git-f1778c28a9c6a898e9d78207847d61b189c49b5c.tar.gz
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/linkx_run.go')
-rw-r--r--test/linkx_run.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/linkx_run.go b/test/linkx_run.go
index f25053bf28..ccfc3a93df 100644
--- a/test/linkx_run.go
+++ b/test/linkx_run.go
@@ -1,4 +1,4 @@
-// +build !nacl,!js
+// +build !nacl,!js,gc
// run
// Copyright 2014 The Go Authors. All rights reserved.