Commit 5512f6f3 authored by Peter Collingbourne's avatar Peter Collingbourne Committed by Ian Lance Taylor

cmd/go: use $CC to build _cgo_defun.c

LGTM=dave, iant
R=iant, dave
CC=golang-codereviews
https://golang.org/cl/112000043
parent 0622e13b
......@@ -1900,8 +1900,7 @@ func (gccgoToolchain) cc(b *builder, p *Package, objdir, ofile, cfile string) er
if pkgpath := gccgoCleanPkgpath(p); pkgpath != "" {
defs = append(defs, `-D`, `GOPKGPATH="`+pkgpath+`"`)
}
// TODO: Support using clang here (during gccgo build)?
return b.run(p.Dir, p.ImportPath, nil, "gcc", "-Wall", "-g",
return b.run(p.Dir, p.ImportPath, nil, envList("CC", defaultCC), "-Wall", "-g",
"-I", objdir, "-I", inc, "-o", ofile, defs, "-c", cfile)
}
......
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