]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
make : print build information
authorGeorgi Gerganov <redacted>
Mon, 2 Jan 2023 11:35:26 +0000 (13:35 +0200)
committerGeorgi Gerganov <redacted>
Mon, 2 Jan 2023 11:35:26 +0000 (13:35 +0200)
Makefile

index f712936c3bb6dd602ffbc3a57ac3a8fc88cafa64..4ff898c8a9a22d5129974756a18cff01c1746060 100644 (file)
--- 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
 
 #