Skip to content

Commit 0be6a1a

Browse files
committed
make : print build information
1 parent a466c34 commit 0be6a1a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Makefile

+18
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ ifndef UNAME_M
1010
UNAME_M := $(shell uname -m)
1111
endif
1212

13+
CCV := $(shell $(CC) --version | head -n 1)
14+
CXXV := $(shell $(CXX) --version | head -n 1)
15+
1316
# Mac OS + Arm can report x86_64
1417
# ref: https://github.com/ggerganov/whisper.cpp/issues/66#issuecomment-1282546789
1518
ifeq ($(UNAME_S),Darwin)
@@ -141,6 +144,21 @@ ifneq ($(filter armv8%,$(UNAME_M)),)
141144
CFLAGS += -mfp16-format=ieee -mno-unaligned-access
142145
endif
143146

147+
#
148+
# Print build information
149+
#
150+
151+
$(info I whisper.cpp build info: )
152+
$(info I UNAME_S: $(UNAME_S))
153+
$(info I UNAME_P: $(UNAME_P))
154+
$(info I UNAME_M: $(UNAME_M))
155+
$(info I CFLAGS: $(CFLAGS))
156+
$(info I CXXFLAGS: $(CXXFLAGS))
157+
$(info I LDFLAGS: $(LDFLAGS))
158+
$(info I CC: $(CC) $(CCV))
159+
$(info I CXX: $(CXX) $(CXXV))
160+
$(info )
161+
144162
default: main
145163

146164
#

0 commit comments

Comments
 (0)