mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-07-27 23:51:56 +03:00
makefile_base.mak: Use clang for CC/CXX on OS X
This commit is contained in:
parent
53ae49fc44
commit
5cd4f01d85
@ -41,10 +41,18 @@ endif
|
||||
|
||||
# If CC is coming from make's defaults or nowhere, use our own default. Otherwise respect environment.
|
||||
ifneq ($(filter default undefined,$(origin CC)),)
|
||||
CC = ccache gcc
|
||||
ifeq ($(OSX),1)
|
||||
CC = ccache clang
|
||||
else
|
||||
CC = ccache gcc
|
||||
endif
|
||||
endif
|
||||
ifneq ($(filter default undefined,$(origin CXX)),)
|
||||
CXX = ccache g++
|
||||
ifeq ($(OSX),1)
|
||||
CXX = ccache clang++
|
||||
else
|
||||
CXX = ccache g++
|
||||
endif
|
||||
endif
|
||||
|
||||
export CC
|
||||
|
Loading…
x
Reference in New Issue
Block a user