]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: introduce go1.6 build tag
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 8 Nov 2015 09:41:20 +0000 (10:41 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 8 Nov 2015 10:57:57 +0000 (10:57 +0000)
This is needed now for subrepos to be able to conditionally use
API symbols found only after Go 1.5.

Change-Id: I91f8a1154e2a74008e8ca79490e3f12847f9c3b2
Reviewed-on: https://go-review.googlesource.com/16733
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/go/build/build.go
src/go/build/doc.go

index 496fe1172421f67ad79e8a544f5333f6bbd6bed0..ce90f597fd1fcd2e4c1a70f339f5417ad7583dca 100644 (file)
@@ -298,7 +298,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"}
+       c.ReleaseTags = []string{"go1.1", "go1.2", "go1.3", "go1.4", "go1.5", "go1.6"}
 
        switch os.Getenv("CGO_ENABLED") {
        case "1":
index 233f8b989d59d81f113823a884c39fd61a57e6f0..d436d28b3172b6fd8b9f8d1f9b23773948b37770 100644 (file)
 //     - "go1.3", from Go version 1.3 onward
 //     - "go1.4", from Go version 1.4 onward
 //     - "go1.5", from Go version 1.5 onward
+//     - "go1.6", from Go version 1.6 onward
 //     - any additional words listed in ctxt.BuildTags
 //
 // If a file's name, after stripping the extension and a possible _test suffix,