1
0
mirror of https://github.com/golang/go synced 2024-11-23 21:40:05 -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,8 +350,13 @@ func init() {
var err error
archChar, err = build.ArchChar(goarch)
if err != nil {
if _, isgc := buildToolchain.(gcToolchain); isgc {
fatalf("%s", err)
}
// archChar is only required for gcToolchain, if we're using
// another toolchain leave it blank.
archChar = ""
}
}
// A builder holds global state about a build.