1
0
mirror of https://github.com/golang/go synced 2024-11-11 19:11:35 -07:00

cmd/cgo: add required gcc flags for GOARCH=mips{,le}

Change-Id: I1d6a2120a444d1ab9b9ecfdf27464325ad741d55
Reviewed-on: https://go-review.googlesource.com/34315
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Vladimir Stefanovic 2016-12-13 22:03:18 +01:00 committed by Ian Lance Taylor
parent 990cda59f8
commit 386b66f5bd
2 changed files with 4 additions and 0 deletions

View File

@ -1210,6 +1210,8 @@ func (p *Package) gccMachine() []string {
return []string{"-m64"}
case "mips64", "mips64le":
return []string{"-mabi=64"}
case "mips", "mipsle":
return []string{"-mabi=32"}
}
return nil
}

View File

@ -3220,6 +3220,8 @@ func (b *builder) gccArchArgs() []string {
return []string{"-m64", "-march=z196"}
case "mips64", "mips64le":
return []string{"-mabi=64"}
case "mips", "mipsle":
return []string{"-mabi=32", "-march=mips32"}
}
return nil
}