From 0be6a1afd9d6e7848ffc5917c2a66a3cd4eba53e Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 2 Jan 2023 13:35:26 +0200 Subject: [PATCH] make : print build information --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Makefile b/Makefile index f712936..4ff898c 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,9 @@ ifndef UNAME_M UNAME_M := $(shell uname -m) endif +CCV := $(shell $(CC) --version | head -n 1) +CXXV := $(shell $(CXX) --version | head -n 1) + # Mac OS + Arm can report x86_64 # ref: https://github.com/ggerganov/whisper.cpp/issues/66#issuecomment-1282546789 ifeq ($(UNAME_S),Darwin) @@ -141,6 +144,21 @@ ifneq ($(filter armv8%,$(UNAME_M)),) CFLAGS += -mfp16-format=ieee -mno-unaligned-access endif +# +# Print build information +# + +$(info I whisper.cpp build info: ) +$(info I UNAME_S: $(UNAME_S)) +$(info I UNAME_P: $(UNAME_P)) +$(info I UNAME_M: $(UNAME_M)) +$(info I CFLAGS: $(CFLAGS)) +$(info I CXXFLAGS: $(CXXFLAGS)) +$(info I LDFLAGS: $(LDFLAGS)) +$(info I CC: $(CC) $(CCV)) +$(info I CXX: $(CXX) $(CXXV)) +$(info ) + default: main #