aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2016-06-07 08:33:00 +1000
committerAndrew Gerrand <adg@golang.org>2016-06-07 04:31:29 +0000
commit27c5dcffef590ac9dbc31f3d513f1b7d058907f6 (patch)
tree6f4f145dea43bf7e997297d5fb1d26fdd2645d22
parent3ba31558d1bca8ae6d2f03209b4cae55381175b3 (diff)
downloadgo-27c5dcffef590ac9dbc31f3d513f1b7d058907f6.tar.gz
go-27c5dcffef590ac9dbc31f3d513f1b7d058907f6.zip
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/23840 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-rw-r--r--src/cmd/dist/build.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
index aa12aa9dc3..9eb9caf392 100644
--- a/src/cmd/dist/build.go
+++ b/src/cmd/dist/build.go
@@ -1143,8 +1143,8 @@ func checkCC() {
}
fatal("cannot invoke C compiler %q: %v\n\n"+
"Go needs a system C compiler for use with cgo.\n"+
- "To set a C compiler, export CC=the-compiler.\n"+
- "To disable cgo, export CGO_ENABLED=0.\n%s%s", defaultcc, err, outputHdr, output)
+ "To set a C compiler, set CC=the-compiler.\n"+
+ "To disable cgo, set CGO_ENABLED=0.\n%s%s", defaultcc, err, outputHdr, output)
}
}