]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: use "set" instead of "export" in diagnostic message
authorAndrew Gerrand <adg@golang.org>
Mon, 6 Jun 2016 22:33:00 +0000 (08:33 +1000)
committerAndrew Gerrand <adg@golang.org>
Tue, 7 Jun 2016 04:31:29 +0000 (04:31 +0000)
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>

src/cmd/dist/build.go

index aa12aa9dc3da8c0e048b1cd582ba99118d93b930..9eb9caf392197a094e8722f326308e4292d2609c 100644 (file)
@@ -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)
        }
 }