Commit 27c5dcff authored by Andrew Gerrand's avatar Andrew Gerrand

cmd/dist: use "set" instead of "export" in diagnostic message

On Windows, "export" doesn't mean anything, but Windows users are the
most likely to see this message.

Fixes #15977

Change-Id: Ib09ca08a7580713cacb65d0cdc43730765c377a8
Reviewed-on: https://go-review.googlesource.com/23840Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 3ba31558
...@@ -1143,8 +1143,8 @@ func checkCC() { ...@@ -1143,8 +1143,8 @@ func checkCC() {
} }
fatal("cannot invoke C compiler %q: %v\n\n"+ fatal("cannot invoke C compiler %q: %v\n\n"+
"Go needs a system C compiler for use with cgo.\n"+ "Go needs a system C compiler for use with cgo.\n"+
"To set a C compiler, export CC=the-compiler.\n"+ "To set a C compiler, set CC=the-compiler.\n"+
"To disable cgo, export CGO_ENABLED=0.\n%s%s", defaultcc, err, outputHdr, output) "To disable cgo, set CGO_ENABLED=0.\n%s%s", defaultcc, err, outputHdr, output)
} }
} }
......
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