]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/cgo: restore correct build tags for linux/mips*
authorJoel Sing <joel@sing.id.au>
Fri, 17 Feb 2023 18:45:34 +0000 (05:45 +1100)
committerJoel Sing <joel@sing.id.au>
Sat, 18 Feb 2023 05:22:26 +0000 (05:22 +0000)
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 <cherryyz@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/runtime/cgo/gcc_linux_mips64x.c
src/runtime/cgo/gcc_linux_mipsx.c

index fbe199a67817aef1a6b3d1f0a89cc424cb103a7d..c059fd1255aae3de38e7fbdc6048774c7e576c93 100644 (file)
@@ -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 <pthread.h>
 #include <string.h>
index 781afc097dfb8da9df820e99366d08c5704c7f94..218b8fd6e1ea46dae0b594eb87221f54d822cdd7 100644 (file)
@@ -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 <pthread.h>
 #include <string.h>