mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-04-26 17:39:37 +00:00
make : change GNU make default CXX from g++ to c++ (#6966)
This commit is contained in:
committed by
GitHub
parent
2307a7b21c
commit
0bf2a9ced7
11
Makefile
11
Makefile
@@ -27,6 +27,17 @@ ifndef UNAME_M
|
|||||||
UNAME_M := $(shell uname -m)
|
UNAME_M := $(shell uname -m)
|
||||||
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
|
||||||
|
|
||||||
# Mac OS + Arm can report x86_64
|
# Mac OS + Arm can report x86_64
|
||||||
# ref: https://github.com/ggerganov/whisper.cpp/issues/66#issuecomment-1282546789
|
# ref: https://github.com/ggerganov/whisper.cpp/issues/66#issuecomment-1282546789
|
||||||
ifeq ($(UNAME_S),Darwin)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
|
|||||||
Reference in New Issue
Block a user