mirror of
https://github.com/golang/go
synced 2024-11-18 01:04:48 -07:00
runtime: added mips64{,le} build tags and GOARCH cases
Change-Id: I381c03d957a0dccae5f655f02e92760e5c0e9629 Reviewed-on: https://go-review.googlesource.com/14929 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
15b51d6ae6
commit
c1037aad4d
@ -4,6 +4,8 @@
|
||||
|
||||
// +build !arm
|
||||
// +build !arm64
|
||||
// +build !mips64
|
||||
// +build !mips64le
|
||||
|
||||
package runtime
|
||||
|
||||
|
@ -144,7 +144,7 @@ func infoBigStruct() []byte {
|
||||
typeScalar, typeScalar, typeScalar, typeScalar, // t int; y uint16; u uint64
|
||||
typePointer, typeScalar, // i string
|
||||
}
|
||||
case "arm64", "amd64", "ppc64", "ppc64le":
|
||||
case "arm64", "amd64", "mips64", "mips64le", "ppc64", "ppc64le":
|
||||
return []byte{
|
||||
typePointer, // q *int
|
||||
typeScalar, typeScalar, typeScalar, // w byte; e [17]byte
|
||||
|
@ -6,7 +6,7 @@
|
||||
// xxhash: https://code.google.com/p/xxhash/
|
||||
// cityhash: https://code.google.com/p/cityhash/
|
||||
|
||||
// +build amd64 amd64p32 arm64 ppc64 ppc64le
|
||||
// +build amd64 amd64p32 arm64 mips64 mips64le ppc64 ppc64le
|
||||
|
||||
package runtime
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
// Routines that are implemented in assembly in asm_{amd64,386,arm,arm64,ppc64x}.s
|
||||
|
||||
// +build ignore
|
||||
// +build mips64 mips64le
|
||||
|
||||
package runtime
|
||||
|
||||
|
@ -103,7 +103,7 @@ func TestGdbPython(t *testing.T) {
|
||||
// stack frames on RISC architectures.
|
||||
canBackTrace := false
|
||||
switch runtime.GOARCH {
|
||||
case "amd64", "386", "ppc64", "ppc64le", "arm", "arm64":
|
||||
case "amd64", "386", "ppc64", "ppc64le", "arm", "arm64", "mips64", "mips64le":
|
||||
canBackTrace = true
|
||||
args = append(args,
|
||||
"-ex", "echo BEGIN goroutine 2 bt\n",
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build arm ppc64 ppc64le
|
||||
// +build arm ppc64 ppc64le mips64 mips64le
|
||||
|
||||
package runtime
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user