mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
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>
This commit is contained in:
parent
3ba31558d1
commit
27c5dcffef
4
src/cmd/dist/build.go
vendored
4
src/cmd/dist/build.go
vendored
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue