From 169203f3ee022abf66647abc99fd483fd10f9a54 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sat, 18 Feb 2023 05:45:34 +1100 Subject: [PATCH] runtime/cgo: restore correct build tags for linux/mips* The linux build tags were incorrectly removed from these files by CL 460538. Restore the correct build tags so that they are only included in builds for linux/mips* platforms. Change-Id: I21d8802b0252688d8e2228cf904b47d90b253485 Reviewed-on: https://go-review.googlesource.com/c/go/+/469175 Reviewed-by: Cherry Mui Run-TryBot: Joel Sing TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor --- src/runtime/cgo/gcc_linux_mips64x.c | 2 +- src/runtime/cgo/gcc_linux_mipsx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/cgo/gcc_linux_mips64x.c b/src/runtime/cgo/gcc_linux_mips64x.c index fbe199a678..c059fd1255 100644 --- a/src/runtime/cgo/gcc_linux_mips64x.c +++ b/src/runtime/cgo/gcc_linux_mips64x.c @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build mips64 || mips64le +//go:build linux && (mips64 || mips64le) #include #include diff --git a/src/runtime/cgo/gcc_linux_mipsx.c b/src/runtime/cgo/gcc_linux_mipsx.c index 781afc097d..218b8fd6e1 100644 --- a/src/runtime/cgo/gcc_linux_mipsx.c +++ b/src/runtime/cgo/gcc_linux_mipsx.c @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build mips || mipsle +//go:build linux && (mips || mipsle) #include #include -- 2.50.0