diff --git a/Makefile.darwin b/Makefile.darwin index ab8ac344f..3011704bd 100644 --- a/Makefile.darwin +++ b/Makefile.darwin @@ -1,5 +1,7 @@ #darwin specific settings COMMANDS += containerd-shim -# supports go test -race -TESTFLAGS_RACE= -race +# amd64 supports go test -race +ifeq ("amd64", $(GOARCH)) + TESTFLAGS_RACE= -race +endif diff --git a/Makefile.freebsd b/Makefile.freebsd index 675d6caa5..4548eb1cd 100644 --- a/Makefile.freebsd +++ b/Makefile.freebsd @@ -1,5 +1,7 @@ #freebsd specific settings COMMANDS += containerd-shim -# supports go test -race -TESTFLAGS_RACE= -race +# amd64 supports go test -race +ifeq ("amd64", $(GOARCH)) + TESTFLAGS_RACE= -race +endif diff --git a/Makefile.linux b/Makefile.linux index 0bf02ec3a..01b9ceb6c 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -1,5 +1,7 @@ #linux specific settings COMMANDS += containerd-shim -# supports go test -race -TESTFLAGS_RACE= -race +# amd64 supports go test -race +ifeq ("amd64", $(GOARCH)) + TESTFLAGS_RACE= -race +endif diff --git a/Makefile.windows b/Makefile.windows index 6db1e603d..d41401211 100644 --- a/Makefile.windows +++ b/Makefile.windows @@ -5,5 +5,7 @@ FIX_PATH = $(subst /,\,$1) BINARY_SUFFIX=".exe" -# supports go test -race -TESTFLAGS_RACE= -race +# amd64 supports go test -race +ifeq ("amd64", $(GOARCH)) + TESTFLAGS_RACE= -race +endif