From 6070e432d2cbde0f04b7391069f5dbb27589b341 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 28 May 2018 11:36:29 -0700 Subject: [PATCH] cmd/dist: report correct CC name in error about missing CC Fixes #25611 Change-Id: I487463584e4d9d99cf5d8db0c9a4b4e66464ecd8 Reviewed-on: https://go-review.googlesource.com/114935 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/cmd/dist/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go index 99d1db5909..effea903e9 100644 --- a/src/cmd/dist/build.go +++ b/src/cmd/dist/build.go @@ -1438,7 +1438,7 @@ func checkCC() { fatalf("cannot invoke C compiler %q: %v\n\n"+ "Go needs a system C compiler for use with cgo.\n"+ "To set a C compiler, set CC=the-compiler.\n"+ - "To disable cgo, set CGO_ENABLED=0.\n%s%s", defaultcc, err, outputHdr, output) + "To disable cgo, set CGO_ENABLED=0.\n%s%s", defaultcc[""], err, outputHdr, output) } } -- 2.50.0