build: avoids link error when CCACHE is not activated

Change-Id: I31d7578cc20b9b64c7c144935f93576b6349597e
Signed-off-by: Fabien Chereau <fabien.chereau@intel.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Fabien Chereau 2015-08-19 15:34:02 +02:00 committed by Anas Nashif
commit 6d1ee7e8bf

View file

@ -323,7 +323,11 @@ endif
# Make variables (CC, etc...)
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
ifeq ($(USE_CCACHE),1)
CC = $(CCACHE) $(CROSS_COMPILE)gcc
else
CC = $(CROSS_COMPILE)gcc
endif
CPP = $(CC) -E
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm