Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: enable race-detector in DEBUG=1 builds. #409

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ export IMAGE_PATH
# Determine binary version and buildid.
BUILD_VERSION ?= $(shell scripts/build/get-buildid --version --shell=no)
BUILD_BUILDID ?= $(shell scripts/build/get-buildid --buildid --shell=no)
BUILD_FLAGS ?=

GO_CMD := go
GO_BUILD := $(GO_CMD) build
GO_BUILD = $(GO_CMD) build $(BUILD_FLAGS)
GO_INSTALL := $(GO_CMD) install
GO_TEST := $(GO_CMD) test
GO_LINT := golint -set_exit_status
Expand Down Expand Up @@ -105,6 +106,9 @@ LDFLAGS = \
ifeq ($(DEBUG),1)
GCFLAGS ?= -gcflags "all=-N -l"
DOCKER_BUILD_DEBUG := --build-arg DEBUG=1
ifneq ($(NORACE),1)
BUILD_FLAGS += -race
endif
endif

# Documentation-related variables
Expand Down