From c49399feb886d517c56e0647781d1c4aee30a77b Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 15 Nov 2016 10:14:56 -0800 Subject: [PATCH] ppc64/ppc64spec: skip build unless Go 1.8+ or amd64 Fix build failure: ../../gopath/src/golang.org/x/arch/ppc64/ppc64spec/spec.go:146: undefined: pdf.Outline ../../gopath/src/golang.org/x/arch/ppc64/ppc64spec/spec.go:153: undefined: pdf.Outline ../../gopath/src/golang.org/x/arch/ppc64/ppc64spec/spec.go:174: undefined: pdf.Page ../../gopath/src/golang.org/x/arch/ppc64/ppc64spec/spec.go:271: undefined: pdf.Content ../../gopath/src/golang.org/x/arch/ppc64/ppc64spec/spec.go:271: undefined: pdf.Text ../../gopath/src/golang.org/x/arch/ppc64/ppc64spec/spec.go:396: undefined: pdf.Rect ppc64spec depends on other packages that don't build on 32-bit systems prior to Go 1.8. Fixes golang/go#17635 Updates golang/go#12840 Change-Id: I594adef1d0bc498940183215c7c5a958628a254a Reviewed-on: https://go-review.googlesource.com/33247 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- ppc64/ppc64spec/spec.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ppc64/ppc64spec/spec.go b/ppc64/ppc64spec/spec.go index b965160..0e60037 100644 --- a/ppc64/ppc64spec/spec.go +++ b/ppc64/ppc64spec/spec.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build go1.6,amd64 go1.8 + // Power64spec reads the ``Power ISA V2.07'' Manual // to collect instruction encoding details and writes those details to standard output // in CSV format.