summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-03-18 22:32:53 +0200
committerPaul Buetow <paul@buetow.org>2025-03-18 22:32:53 +0200
commitdbcd2f6dc2a4b842ebcfa5dbfc7990befa27267c (patch)
tree6ccbb822a472eb20dd1008f73a649e4aaa4db8f0 /Makefile
parent6010e057e2d0593a6c6b50f4c7aee301a86a478a (diff)
add race detector
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fe8d281..3935361 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,8 @@ generate:
.PHONY: gobuild
gobuild:
$(GO) build -tags netgo -ldflags '-w -extldflags "-static"' -o ior ./cmd/ior/main.go
+gobuild_race:
+ $(GO) build -tags netgo -ldflags '-w -extldflags "-static"' -race -o ior ./cmd/ior/main.go
.PHONY: clean
clean:
@@ -69,3 +71,4 @@ inferno:
prof:
$(GO) tool pprof -pdf ./ior ior.cpuprofile > cpuprofile.pdf && evince cpuprofile.pdf &
$(GO) tool pprof -pdf ./ior ior.memprofile > memprofile.pdf && evince memprofile.pdf &
+