Skip to content

Commit d1753f7

Browse files
authored
bytesconv: add appropriate build tags for s390x (#1250)
The bytesconv 32-bit tests fail on s390x, because it is a 64-bit architecture. Add the appropriate build flags so that 32-bit tests do not run on this architecture.
1 parent 8f5e51f commit d1753f7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

bytesconv_32.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !amd64 && !arm64 && !ppc64 && !ppc64le
2-
// +build !amd64,!arm64,!ppc64,!ppc64le
1+
//go:build !amd64 && !arm64 && !ppc64 && !ppc64le && !s390x
2+
// +build !amd64,!arm64,!ppc64,!ppc64le,!s390x
33

44
package fasthttp
55

bytesconv_32_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !amd64 && !arm64 && !ppc64 && !ppc64le
2-
// +build !amd64,!arm64,!ppc64,!ppc64le
1+
//go:build !amd64 && !arm64 && !ppc64 && !ppc64le && !s390x
2+
// +build !amd64,!arm64,!ppc64,!ppc64le,!s390x
33

44
package fasthttp
55

bytesconv_64.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build amd64 || arm64 || ppc64 || ppc64le
2-
// +build amd64 arm64 ppc64 ppc64le
1+
//go:build amd64 || arm64 || ppc64 || ppc64le || s390x
2+
// +build amd64 arm64 ppc64 ppc64le s390x
33

44
package fasthttp
55

bytesconv_64_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build amd64 || arm64 || ppc64 || ppc64le
2-
// +build amd64 arm64 ppc64 ppc64le
1+
//go:build amd64 || arm64 || ppc64 || ppc64le || s390x
2+
// +build amd64 arm64 ppc64 ppc64le s390x
33

44
package fasthttp
55

0 commit comments

Comments
 (0)