mirror of https://github.com/golang/go.git
cmd/go: let build -x output describe CGO_LDFLAGS env variable
Fixes #7249 LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://golang.org/cl/75820046
This commit is contained in:
parent
666f5b4a89
commit
f081e2b9f4
|
|
@ -1357,7 +1357,13 @@ func (b *builder) processOutput(out []byte) string {
|
|||
func (b *builder) runOut(dir string, desc string, env []string, cmdargs ...interface{}) ([]byte, error) {
|
||||
cmdline := stringList(cmdargs...)
|
||||
if buildN || buildX {
|
||||
b.showcmd(dir, "%s", joinUnambiguously(cmdline))
|
||||
var envcmdline string
|
||||
for i := range env {
|
||||
envcmdline += env[i]
|
||||
envcmdline += " "
|
||||
}
|
||||
envcmdline += joinUnambiguously(cmdline)
|
||||
b.showcmd(dir, "%s", envcmdline)
|
||||
if buildN {
|
||||
return nil, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue