From 2d88f8f21e71f73dc3aa846cdc8c413f1bb584b8 Mon Sep 17 00:00:00 2001 From: Himanshu Kishna Srivastava <28himanshu@gmail.com> Date: Wed, 31 Mar 2021 21:22:49 +0530 Subject: [PATCH] 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 --- src/cmd/go/internal/work/gc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.50.0