Skip to content

Commit

Permalink
runtime/cgo: restore correct build tags for linux/mips*
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
4a6f656c committed Feb 18, 2023
1 parent 7e5906a commit 169203f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/cgo/gcc_linux_mips64x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/cgo/gcc_linux_mipsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 169203f

Please sign in to comment.