]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: introduce go1.5 build tag
authorShenghou Ma <minux@golang.org>
Thu, 14 May 2015 04:58:06 +0000 (00:58 -0400)
committerMinux Ma <minux@golang.org>
Thu, 14 May 2015 20:23:27 +0000 (20:23 +0000)
Change-Id: Iab2f8e1c4443f39b79c1c63a7a30062074b48764
Signed-off-by: Shenghou Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/10042
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/go/build/build.go
src/go/build/doc.go

index d91eb0b24d60ea51c55aa3d9f1a2b562dd5851f4..820434bc4a9946150cab9b9eebfdd1da376c245b 100644 (file)
@@ -296,11 +296,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".
-       //
-       // When we reach Go 1.5 the line will read
-       //      c.ReleaseTags = []string{"go1.1", "go1.2", "go1.3", "go1.4", "go1.5"}
-       // and so on.
-       c.ReleaseTags = []string{"go1.1", "go1.2", "go1.3", "go1.4"}
+       c.ReleaseTags = []string{"go1.1", "go1.2", "go1.3", "go1.4", "go1.5"}
 
        switch os.Getenv("CGO_ENABLED") {
        case "1":
index 78e17b220a024dfd3bbdd4a2635f91811626941a..233f8b989d59d81f113823a884c39fd61a57e6f0 100644 (file)
 //     - "go1.2", from Go version 1.2 onward
 //     - "go1.3", from Go version 1.3 onward
 //     - "go1.4", from Go version 1.4 onward
+//     - "go1.5", from Go version 1.5 onward
 //     - any additional words listed in ctxt.BuildTags
 //
 // If a file's name, after stripping the extension and a possible _test suffix,