]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: introduce go1.7 build tag
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 7 Mar 2016 23:11:37 +0000 (23:11 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 7 Mar 2016 23:48:25 +0000 (23:48 +0000)
This is needed now for subrepos to be able to conditionally use
API symbols found only after Go 1.6.

Change-Id: Ie7d9301332aa1739b585d93f8025424ae72a2430
Reviewed-on: https://go-review.googlesource.com/20344
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/go/build/build.go
src/go/build/doc.go

index 1bd44cb3e533504cf8645b33bb2bcd00bce4e4ad..e61d564fa34195000c0c0f5331cac1002615a05f 100644 (file)
@@ -270,7 +270,7 @@ func defaultContext() Context {
        // in all releases >= Go 1.x. Code that requires Go 1.x or later should
        // say "+build go1.x", and code that should only be built before Go 1.x
        // (perhaps it is the stub to use in that case) should say "+build !go1.x".
-       c.ReleaseTags = []string{"go1.1", "go1.2", "go1.3", "go1.4", "go1.5", "go1.6"}
+       c.ReleaseTags = []string{"go1.1", "go1.2", "go1.3", "go1.4", "go1.5", "go1.6", "go1.7"}
 
        switch os.Getenv("CGO_ENABLED") {
        case "1":
index c926467059bd6a48a14364e57f642d05770a2bbb..502ec3bcc3dec12b0ce4dd7b8900b558d2828c89 100644 (file)
 //     - "go1.4", from Go version 1.4 onward
 //     - "go1.5", from Go version 1.5 onward
 //     - "go1.6", from Go version 1.6 onward
+//     - "go1.7", from Go version 1.7 onward
 //     - any additional words listed in ctxt.BuildTags
 //
 // If a file's name, after stripping the extension and a possible _test suffix,