Skip to content

Commit

Permalink
bytesconv: add appropriate build tags for s390x (#1250)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
enr0n committed Mar 16, 2022
1 parent 8f5e51f commit d1753f7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bytesconv_32.go
@@ -1,5 +1,5 @@
//go:build !amd64 && !arm64 && !ppc64 && !ppc64le
// +build !amd64,!arm64,!ppc64,!ppc64le
//go:build !amd64 && !arm64 && !ppc64 && !ppc64le && !s390x
// +build !amd64,!arm64,!ppc64,!ppc64le,!s390x

package fasthttp

Expand Down
4 changes: 2 additions & 2 deletions bytesconv_32_test.go
@@ -1,5 +1,5 @@
//go:build !amd64 && !arm64 && !ppc64 && !ppc64le
// +build !amd64,!arm64,!ppc64,!ppc64le
//go:build !amd64 && !arm64 && !ppc64 && !ppc64le && !s390x
// +build !amd64,!arm64,!ppc64,!ppc64le,!s390x

package fasthttp

Expand Down
4 changes: 2 additions & 2 deletions bytesconv_64.go
@@ -1,5 +1,5 @@
//go:build amd64 || arm64 || ppc64 || ppc64le
// +build amd64 arm64 ppc64 ppc64le
//go:build amd64 || arm64 || ppc64 || ppc64le || s390x
// +build amd64 arm64 ppc64 ppc64le s390x

package fasthttp

Expand Down
4 changes: 2 additions & 2 deletions bytesconv_64_test.go
@@ -1,5 +1,5 @@
//go:build amd64 || arm64 || ppc64 || ppc64le
// +build amd64 arm64 ppc64 ppc64le
//go:build amd64 || arm64 || ppc64 || ppc64le || s390x
// +build amd64 arm64 ppc64 ppc64le s390x

package fasthttp

Expand Down

0 comments on commit d1753f7

Please sign in to comment.