From 1c0498fc05156d99a53d4a5ed728a3dc329c34a0 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Fri, 22 May 2015 17:09:36 -0400 Subject: [PATCH] go/build: make ArchChar always return "?" to match docs Change-Id: I56f825f81aead9ded7af07a02188a52d3650ccf8 Reviewed-on: https://go-review.googlesource.com/10333 Reviewed-by: Brad Fitzpatrick --- src/go/build/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go/build/build.go b/src/go/build/build.go index 1fd06b5d92..db6bdcf923 100644 --- a/src/go/build/build.go +++ b/src/go/build/build.go @@ -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") }