Commit 1c0498fc authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

go/build: make ArchChar always return "?" to match docs

Change-Id: I56f825f81aead9ded7af07a02188a52d3650ccf8
Reviewed-on: https://go-review.googlesource.com/10333Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent db0594b6
......@@ -1397,5 +1397,5 @@ func IsLocalImport(path string) bool {
// and the default linker output name. As of Go 1.5, those strings
// no longer vary by architecture; they are compile, link, .o, and a.out, respectively.
func ArchChar(goarch string) (string, error) {
return "", errors.New("architecture letter no longer used")
return "?", errors.New("architecture letter no longer used")
}
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