mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-04-23 10:51:22 +02:00
make : change GNU make default CXX from g++ to c++ (#2100)
This commit is contained in:
parent
22b6598cc9
commit
8fac6455ff
11
Makefile
11
Makefile
@ -18,6 +18,17 @@ ifndef NVCC_VERSION
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# In GNU make default CXX is g++ instead of c++. Let's fix that so that users
|
||||||
|
# of non-gcc compilers don't have to provide g++ alias or wrapper.
|
||||||
|
DEFCC := cc
|
||||||
|
DEFCXX := c++
|
||||||
|
ifeq ($(origin CC),default)
|
||||||
|
CC := $(DEFCC)
|
||||||
|
endif
|
||||||
|
ifeq ($(origin CXX),default)
|
||||||
|
CXX := $(DEFCXX)
|
||||||
|
endif
|
||||||
|
|
||||||
CCV := $(shell $(CC) --version | head -n 1)
|
CCV := $(shell $(CC) --version | head -n 1)
|
||||||
CXXV := $(shell $(CXX) --version | head -n 1)
|
CXXV := $(shell $(CXX) --version | head -n 1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user