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 committed 2017-08-23 12:30:44 -04:00
1 parent 311ea33608
commit e6ab556f0e
4 files changed
+16 -8

No files matched your search

+4 -2
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
+4 -2
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
+4 -2
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
+4 -2
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