mirror of
https://github.com/golang/go
synced 2024-11-19 13:54:56 -07:00
cmd/go: use $CC to build _cgo_defun.c
LGTM=dave, iant R=iant, dave CC=golang-codereviews https://golang.org/cl/112000043
This commit is contained in:
parent
0622e13b4d
commit
5512f6f3b3
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user