From 083f3957b8266d591db4147bd03dd16874635189 Mon Sep 17 00:00:00 2001 From: Yuval Pavel Zholkover Date: Wed, 7 Mar 2018 15:07:31 +0200 Subject: [PATCH] runtime: add missing build constraints to os_linux_{be64,noauxv,novdso,ppc64x}.go files They do not match the file name patterns of *_GOOS *_GOARCH *_GOOS_GOARCH therefore the implicit linux constraint was not being added. Change-Id: Ie506c51cee6818db445516f96fffaa351df62cf5 Reviewed-on: https://go-review.googlesource.com/99116 Reviewed-by: Tobias Klauser Reviewed-by: Ian Lance Taylor Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot --- src/runtime/os_linux_be64.go | 1 + src/runtime/os_linux_noauxv.go | 1 + src/runtime/os_linux_novdso.go | 1 + src/runtime/os_linux_ppc64x.go | 1 + 4 files changed, 4 insertions(+) diff --git a/src/runtime/os_linux_be64.go b/src/runtime/os_linux_be64.go index 85466d704b7..14fbad5d5f8 100644 --- a/src/runtime/os_linux_be64.go +++ b/src/runtime/os_linux_be64.go @@ -4,6 +4,7 @@ // The standard GNU/Linux sigset type on big-endian 64-bit machines. +// +build linux // +build ppc64 s390x package runtime diff --git a/src/runtime/os_linux_noauxv.go b/src/runtime/os_linux_noauxv.go index d6174c33fe6..895b4cd5f44 100644 --- a/src/runtime/os_linux_noauxv.go +++ b/src/runtime/os_linux_noauxv.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build linux // +build !arm,!arm64,!mips,!mipsle,!mips64,!mips64le,!s390x,!ppc64,!ppc64le package runtime diff --git a/src/runtime/os_linux_novdso.go b/src/runtime/os_linux_novdso.go index 41acd957cfd..b5a6b0e947b 100644 --- a/src/runtime/os_linux_novdso.go +++ b/src/runtime/os_linux_novdso.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build linux // +build !386,!amd64,!arm package runtime diff --git a/src/runtime/os_linux_ppc64x.go b/src/runtime/os_linux_ppc64x.go index e37bfc453a9..3d2a3a198ca 100644 --- a/src/runtime/os_linux_ppc64x.go +++ b/src/runtime/os_linux_ppc64x.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build linux // +build ppc64 ppc64le package runtime