From 4b2f51b479f9faf0ca6e6809095c6ca00fd68b54 Mon Sep 17 00:00:00 2001 From: katsu560 Date: Wed, 23 Nov 2022 21:31:05 +0900 Subject: [PATCH] add gprof option --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 9c7c59b4..5c66d7a2 100644 --- a/Makefile +++ b/Makefile @@ -96,6 +96,10 @@ ifdef WHISPER_OPENBLAS CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas LDFLAGS += -lopenblas endif +ifdef WHISPER_GPROF + CFLAGS += -pg + CXXFLAGS += -pg +endif ifneq ($(filter aarch64%,$(UNAME_M)),) endif ifneq ($(filter armv6%,$(UNAME_M)),)