diff options
author | Russ Cox <rsc@golang.org> | 2013-03-13 17:37:49 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2013-03-13 17:37:49 -0400 |
commit | bf2fee3c923fbe33d8a27c0b3312fbd07d854c47 (patch) | |
tree | f80d950d453a54c607c20b8061578e406ab1b52d /src/cmd/go/go11.go | |
parent | 5a75d9ae47c7c48d3a55f8efc1bf1d286e9cabe6 (diff) | |
download | go-bf2fee3c923fbe33d8a27c0b3312fbd07d854c47.tar.gz |
cmd/go: add go1.1 build tag, add -installsuffix flag
The new build tag "go1.1" will be satisfied by any Go 1.z release >= 1.1.
In general, the build tag "go1.x" will be satisfied by any Go 1.z release >= 1.x.
What happens when we reach Go 2 is yet to be decided.
The tags "go1" or "go1.0" are missing, because +build tags did not exist
before then, and also because the Go 1.0 releases do not recognize them.
The new -installsuffix flag gives access to the build context's InstallSuffix
(formerly named InstallTag, but not part of Go 1.0), for use in isolating
builds to custom directories. For example -race implies -installsuffix race,
and an AppEngine-specific build might use -tags appengine -installsuffix appengine.
Fixes issue 4116.
Fixes issue 4443.
R=golang-dev, bradfitz, r
CC=golang-dev
https://codereview.appspot.com/7794043
Diffstat (limited to 'src/cmd/go/go11.go')
-rw-r--r-- | src/cmd/go/go11.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmd/go/go11.go b/src/cmd/go/go11.go new file mode 100644 index 000000000..8a434dfed --- /dev/null +++ b/src/cmd/go/go11.go @@ -0,0 +1,10 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build go1.1 + +package main + +// Test that go1.1 tag above is included in builds. main.go refers to this definition. +const go11tag = true |