Fixes #43601
Change-Id: I28b745cb92932d875a66f64c63355650a092f096
Reviewed-on: https://go-review.googlesource.com/c/go/+/296029
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
"cmd/internal/objabi"
"cmd/internal/sys"
"fmt"
- "log"
)
// A BuildMode indicates the sort of object we are building.
if ctxt.Debugvlog > 1 {
defer func() {
if res {
- log.Printf("external linking is forced by: %s\n", reason)
+ ctxt.Logf("external linking is forced by: %s\n", reason)
}
}()
}