Only use race flag on amd64

Race is only supported on amd64, so only run if GOARCH is amd64

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
This commit is contained in:
Christopher Jones 2017-08-23 11:18:26 -04:00
parent 311ea33608
commit e6ab556f0e
No known key found for this signature in database
GPG Key ID: 9675B4D446658DE9
4 changed files with 16 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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