]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: introduce go1.8 build tag
authorJoe Tsai <joetsai@digital-static.net>
Tue, 16 Aug 2016 22:06:01 +0000 (15:06 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Wed, 17 Aug 2016 01:42:00 +0000 (01:42 +0000)
Change-Id: Ib8855f8125970fc7ffb271635c28d31d310fcb5b
Reviewed-on: https://go-review.googlesource.com/27192
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

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

index 9706b8b6b31d6298ee2f18c3639806925911df24..93a91cbccc32f8d33c6f0eea94a1fff5ac0bc71e 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", "go1.7"}
+       c.ReleaseTags = []string{"go1.1", "go1.2", "go1.3", "go1.4", "go1.5", "go1.6", "go1.7", "go1.8"}
 
        switch os.Getenv("CGO_ENABLED") {
        case "1":
index 9f7ac8f8ac4f9680d11afca8b233ad26d33271a7..979d0477dfbfd4df9a26a6cf1573ca98791a0c8d 100644 (file)
 //     - "go1.5", from Go version 1.5 onward
 //     - "go1.6", from Go version 1.6 onward
 //     - "go1.7", from Go version 1.7 onward
+//     - "go1.8", from Go version 1.8 onward
 //     - any additional words listed in ctxt.BuildTags
 //
 // If a file's name, after stripping the extension and a possible _test suffix,