1
0
mirror of https://github.com/golang/go synced 2024-11-05 11:46:12 -07:00

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

Change-Id: I56f825f81aead9ded7af07a02188a52d3650ccf8
Reviewed-on: https://go-review.googlesource.com/10333
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Shenghou Ma 2015-05-22 17:09:36 -04:00 committed by Minux Ma
parent db0594b633
commit 1c0498fc05

View File

@ -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")
}