Commit 31339c32 authored by Russ Cox's avatar Russ Cox

cgo: fix build: use $GCC, not $CC

I'm not sure there's a better way.
Cgo is juggling two different C compilers.

Fixes #1008.

R=iant
CC=golang-dev
https://golang.org/cl/1972044
parent 3bf65632
......@@ -450,11 +450,11 @@ func (p *Package) rewriteRef(f *File) {
}
}
// gccName returns the name of the compiler to run. Use CC if set in
// gccName returns the name of the compiler to run. Use $GCC if set in
// the environment, otherwise just "gcc".
func (p *Package) gccName() (ret string) {
if ret = os.Getenv("CC"); ret == "" {
if ret = os.Getenv("GCC"); ret == "" {
ret = "gcc"
}
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment