mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 10:18:59 +02:00
fix makefile for pprof
This commit is contained in:
4
Makefile
4
Makefile
@@ -27,10 +27,10 @@ endif
|
|||||||
ifeq ($(pprof), 1)
|
ifeq ($(pprof), 1)
|
||||||
CGO_ENABLED = 1
|
CGO_ENABLED = 1
|
||||||
GODEBUG = gctrace=1 inittrace=1 schedtrace=3000
|
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
|
BUILD_FLAGS = -race -gcflags=all='-N -l' -tags pprof
|
||||||
DOCKER_TAG = pprof
|
DOCKER_TAG = pprof
|
||||||
VERSION += -pprof
|
VERSION := ${VERSION}-pprof
|
||||||
else
|
else
|
||||||
CGO_ENABLED = 0
|
CGO_ENABLED = 0
|
||||||
LDFLAGS += -s -w
|
LDFLAGS += -s -w
|
||||||
|
|||||||
Reference in New Issue
Block a user