Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Commit

Permalink
Make '-race' option configurable for s390x
Browse files Browse the repository at this point in the history
Signed-off-by: Shahid Shaikh <shahid@us.ibm.com>
  • Loading branch information
shahidhs-ibm committed Apr 24, 2020
1 parent 0ba6290 commit b486753
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ GOENV := CGO_ENABLED=0 GOOS=linux
GOFLAGS := -a -ldflags '-w -s' -a -installsuffix cgo
PLUGIN_REGISTRY_URL ?= "https://che-plugin-registry.openshift.io/v3"

ifeq (s390x, $(shell uname -m))
RACE ?=
else
RACE ?= -race
endif

all: ci build
.PHONY: all

Expand All @@ -23,7 +29,7 @@ build-metadata:

.PHONY: test
test:
go test -v -race ./...
go test -v $(RACE) ./...

.PHONY: lint
lint:
Expand Down

0 comments on commit b486753

Please sign in to comment.