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
}
}
-// 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