Skip to content

Commit ed43a76

Browse files
committed
build, compiler/natives/src/reflect: remove Go 1.11-specific code
GopherJS 1.12 is out by now, so it's safe to remove this code that was added to deal with differences between Go 1.11.0 and Go 1.11.1. There should not be any change in behavior, except the internal and temporary go1.11.1 build tag will no longer be set by GopherJS. It was never intended to be used externally, so hopefully nobody did. Regenerate ./compiler/natives. Updates #862.
1 parent 3e4dfb7 commit ed43a76

File tree

5 files changed

+251
-426
lines changed

5 files changed

+251
-426
lines changed

build/build.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,6 @@ func parseAndAugment(bctx *build.Context, pkg *build.Package, isTest bool, fileS
316316
},
317317
}
318318

319-
// reflect needs to tell Go 1.11 apart from Go 1.11.1 for https://github.com/gopherjs/gopherjs/issues/862,
320-
// so provide it with the custom go1.11.1 build tag whenever we're on Go 1.11.1 or later.
321-
// TODO: Remove this ad hoc special behavior in GopherJS 1.12.
322-
if runtime.Version() != "go1.11" {
323-
nativesContext.ReleaseTags = append(nativesContext.ReleaseTags, "go1.11.1")
324-
}
325-
326319
if nativesPkg, err := nativesContext.Import(importPath, "", 0); err == nil {
327320
names := nativesPkg.GoFiles
328321
if isTest {

0 commit comments

Comments
 (0)