cgo: make file path work for windows

R=golang-dev, mattn.jp, adg
CC=golang-dev
https://golang.org/cl/4634043
This commit is contained in:
Alex Brainman 2011-06-17 10:17:33 +10:00 committed by Andrew Gerrand
parent 380e5a3709
commit c562fbc44e
4 changed files with 14 additions and 10 deletions

View file

@ -697,7 +697,7 @@ func (p *Package) gccMachine() []string {
return nil
}
const gccTmp = "_obj/_cgo_.o"
var gccTmp = objDir + "_cgo_.o"
// gccCmd returns the gcc command line to use for compiling
// the input.