From 5a5a9aec8b6c8b4be7e7539da730028f3eb3e07f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 21 Apr 2022 12:51:55 +0200 Subject: [PATCH] Makefile: add rules for builds with race condition checker enabled New rules `flamenco-manager_race` and `flamenco-worker_race` will build with the race condition checker enabled. --- .gitignore | 2 ++ Makefile | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 47d76846..9dbbd20a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,8 @@ /flamenco-manager /flamenco-worker +/flamenco-manager_race +/flamenco-worker_race /flamenco-worker.yaml /flamenco-worker-credentials.yaml node_modules/ diff --git a/Makefile b/Makefile index 1358b328..b9a6fc1b 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,12 @@ flamenco-manager: flamenco-worker: go build -v ${BUILD_FLAGS} ${PKG}/cmd/flamenco-worker +flamenco-manager_race: + CGO_ENABLED=1 go build -race -o $@ -v ${BUILD_FLAGS} ${PKG}/cmd/flamenco-manager + +flamenco-worker_race: + CGO_ENABLED=1 go build -race -o $@ -v ${BUILD_FLAGS} ${PKG}/cmd/flamenco-worker + generate: generate-go generate-py generate-js generate-go: