Commit db37050f authored by Dave Cheney's avatar Dave Cheney

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
parent dab127ba
......@@ -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 = ""
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment