]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: make ArchChar always return "?" to match docs
authorShenghou Ma <minux@golang.org>
Fri, 22 May 2015 21:09:36 +0000 (17:09 -0400)
committerMinux Ma <minux@golang.org>
Fri, 22 May 2015 21:19:49 +0000 (21:19 +0000)
Change-Id: I56f825f81aead9ded7af07a02188a52d3650ccf8
Reviewed-on: https://go-review.googlesource.com/10333
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/go/build/build.go

index 1fd06b5d929cb8f0110d7dd5ff5798d39108e056..db6bdcf923b7df338dc79528a37cd18f4e1a860d 100644 (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")
 }