From: Himanshu Kishna Srivastava <28himanshu@gmail.com> Date: Wed, 31 Mar 2021 15:52:49 +0000 (+0530) Subject: go/src/cmd/go/internal/work: compile "internal/abi" with "-+" X-Git-Tag: go1.17beta1~882 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2d88f8f21e71f73dc3aa846cdc8c413f1bb584b8;p=gostls13.git go/src/cmd/go/internal/work: compile "internal/abi" with "-+" "internal/abi" package depends on runtime package and are supposed to compile with "-+" option.Added internal/abi in the known list of package that runtime depends on,so that "internal/abi" compiles with "-+". Fixes #45144 Change-Id: Iad9e2589f2fbd014260cb8ef9f943d2126015fe1 Reviewed-on: https://go-review.googlesource.com/c/go/+/306289 Reviewed-by: Matthew Dempsky Reviewed-by: Jay Conrod Trust: Matthew Dempsky Run-TryBot: Matthew Dempsky TryBot-Result: Go Bot --- diff --git a/src/cmd/go/internal/work/gc.go b/src/cmd/go/internal/work/gc.go index c71196469b..7ccba4a561 100644 --- a/src/cmd/go/internal/work/gc.go +++ b/src/cmd/go/internal/work/gc.go @@ -89,7 +89,7 @@ func (gcToolchain) gc(b *Builder, a *Action, archive string, importcfg, embedcfg } compilingRuntime := p.Standard && (p.ImportPath == "runtime" || strings.HasPrefix(p.ImportPath, "runtime/internal")) // The runtime package imports a couple of general internal packages. - if p.Standard && (p.ImportPath == "internal/cpu" || p.ImportPath == "internal/bytealg") { + if p.Standard && (p.ImportPath == "internal/cpu" || p.ImportPath == "internal/bytealg" || p.ImportPath == "internal/abi") { compilingRuntime = true } if compilingRuntime {