Commit ba103186 authored by Rob Pike's avatar Rob Pike

cmd/go: write the WORK=/tmp/... line to stderr

Unlike the other output from the -x flag, it was going to stdout.
Fixes #6362.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13746044
parent 4182889a
...@@ -435,7 +435,7 @@ func (b *builder) init() { ...@@ -435,7 +435,7 @@ func (b *builder) init() {
fatalf("%s", err) fatalf("%s", err)
} }
if buildX || buildWork { if buildX || buildWork {
fmt.Printf("WORK=%s\n", b.work) fmt.Fprintf(os.Stderr, "WORK=%s\n", b.work)
} }
if !buildWork { if !buildWork {
atexit(func() { os.RemoveAll(b.work) }) atexit(func() { os.RemoveAll(b.work) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment