makefile_base.mak: Use clang for CC/CXX on OS X

This commit is contained in:
John Schoenick 2018-09-06 13:49:02 -07:00
parent 53ae49fc44
commit 5cd4f01d85

View File

@ -41,10 +41,18 @@ endif
# If CC is coming from make's defaults or nowhere, use our own default. Otherwise respect environment. # If CC is coming from make's defaults or nowhere, use our own default. Otherwise respect environment.
ifneq ($(filter default undefined,$(origin CC)),) ifneq ($(filter default undefined,$(origin CC)),)
CC = ccache gcc ifeq ($(OSX),1)
CC = ccache clang
else
CC = ccache gcc
endif
endif endif
ifneq ($(filter default undefined,$(origin CXX)),) ifneq ($(filter default undefined,$(origin CXX)),)
CXX = ccache g++ ifeq ($(OSX),1)
CXX = ccache clang++
else
CXX = ccache g++
endif
endif endif
export CC export CC