]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add go1.1 build tag, add -installsuffix flag
authorRuss Cox <rsc@golang.org>
Wed, 13 Mar 2013 21:37:49 +0000 (17:37 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 13 Mar 2013 21:37:49 +0000 (17:37 -0400)
commite778f93022570a439d8a79d0b97c796b4468c6c8
treefd8b68c590c9576b27abd1de1a275290f98b6e48
parent3048a4c7b35cd8af0d8d0fe97a4a970e7ffe6478
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 #4116.
Fixes #4443.

R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/7794043
src/cmd/dist/build.c
src/cmd/go/build.go
src/cmd/go/doc.go
src/cmd/go/go11.go [new file with mode: 0644]
src/cmd/go/main.go
src/pkg/go/build/build.go