mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-07-27 07:31:44 +03:00
makefile_base.mak: Use clang for CC/CXX on OS X
This commit is contained in:
parent
53ae49fc44
commit
5cd4f01d85
@ -41,11 +41,19 @@ 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)),)
|
||||||
|
ifeq ($(OSX),1)
|
||||||
|
CC = ccache clang
|
||||||
|
else
|
||||||
CC = ccache gcc
|
CC = ccache gcc
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
ifneq ($(filter default undefined,$(origin CXX)),)
|
ifneq ($(filter default undefined,$(origin CXX)),)
|
||||||
|
ifeq ($(OSX),1)
|
||||||
|
CXX = ccache clang++
|
||||||
|
else
|
||||||
CXX = ccache g++
|
CXX = ccache g++
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
export CC
|
export CC
|
||||||
export CXX
|
export CXX
|
||||||
|
Loading…
x
Reference in New Issue
Block a user