From 135c79d2ad8adb78f2b06583b8161fadc7c9a0c5 Mon Sep 17 00:00:00 2001 From: yusing Date: Mon, 24 Feb 2025 18:54:16 +0800 Subject: [PATCH] fix makefile for pprof --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a65d227..a6e6813 100755 --- a/Makefile +++ b/Makefile @@ -27,10 +27,10 @@ endif ifeq ($(pprof), 1) CGO_ENABLED = 1 GODEBUG = gctrace=1 inittrace=1 schedtrace=3000 - GORACE = log_path=logs/pprof strip_path_prefix=$(shell pwd)/ + GORACE = log_path=logs/pprof strip_path_prefix=$(shell pwd)/ halt_on_error=1 BUILD_FLAGS = -race -gcflags=all='-N -l' -tags pprof DOCKER_TAG = pprof - VERSION += -pprof + VERSION := ${VERSION}-pprof else CGO_ENABLED = 0 LDFLAGS += -s -w