Skip to content
Snippets Groups Projects
Commit db37050f authored by Dave Cheney's avatar Dave Cheney
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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 = ""
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment