ggerganov commited on
Commit
4b10327
·
unverified ·
1 Parent(s): 3753d20

make : print build information

Browse files
Files changed (1) hide show
  1. Makefile +18 -0
Makefile CHANGED
@@ -10,6 +10,9 @@ ifndef UNAME_M
10
  UNAME_M := $(shell uname -m)
11
  endif
12
 
 
 
 
13
  # Mac OS + Arm can report x86_64
14
  # ref: https://github.com/ggerganov/whisper.cpp/issues/66#issuecomment-1282546789
15
  ifeq ($(UNAME_S),Darwin)
@@ -141,6 +144,21 @@ ifneq ($(filter armv8%,$(UNAME_M)),)
141
  CFLAGS += -mfp16-format=ieee -mno-unaligned-access
142
  endif
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  default: main
145
 
146
  #
 
10
  UNAME_M := $(shell uname -m)
11
  endif
12
 
13
+ CCV := $(shell $(CC) --version | head -n 1)
14
+ CXXV := $(shell $(CXX) --version | head -n 1)
15
+
16
  # Mac OS + Arm can report x86_64
17
  # ref: https://github.com/ggerganov/whisper.cpp/issues/66#issuecomment-1282546789
18
  ifeq ($(UNAME_S),Darwin)
 
144
  CFLAGS += -mfp16-format=ieee -mno-unaligned-access
145
  endif
146
 
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
+
162
  default: main
163
 
164
  #