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

cmd/go: do not require a valid archChar when using -compiler gccgo

Fixes #7152.

R=iant, rsc, gobot
CC=golang-codereviews
https://golang.org/cl/54790044
This commit is contained in:
Dave Cheney 2014-01-22 12:19:11 +11:00
parent dab127baf5
commit db37050f21

View File

@ -350,7 +350,12 @@ func init() {
var err error
archChar, err = build.ArchChar(goarch)
if err != nil {
fatalf("%s", err)
if _, isgc := buildToolchain.(gcToolchain); isgc {
fatalf("%s", err)
}
// archChar is only required for gcToolchain, if we're using
// another toolchain leave it blank.
archChar = ""
}
}