go/src/cmd/cgo
Andrey Bokhanko 4313c28861 cmd/cgo: check whether C compiler exists
Currently we print a cryptic message if a C compiler doesn't exist.
This patch adds more graceful handling.

Fixes #44271

Change-Id: I44f16ef6eb2853fee22fa1d996e41ec6c9ee82f1
Reviewed-on: https://go-review.googlesource.com/c/go/+/301249
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: David Chase <drchase@google.com>
2021-03-17 20:29:22 +00:00
..
ast.go cmd/cgo: add -trimpath flag allowing paths to be rewritten in outputs 2020-10-31 00:35:18 +00:00
doc.go runtime,cmd/cgo: simplify C -> Go call path 2020-10-26 14:50:32 +00:00
gcc.go cmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC 2021-02-24 15:48:11 +00:00
godefs.go cmd/cgo: add -trimpath flag allowing paths to be rewritten in outputs 2020-10-31 00:35:18 +00:00
main.go cmd/cgo: check whether C compiler exists 2021-03-17 20:29:22 +00:00
out.go all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00
util.go all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00