From 6d1ee7e8bfbb08d80a924d88a89047dba93bb9d4 Mon Sep 17 00:00:00 2001 From: Fabien Chereau Date: Wed, 19 Aug 2015 15:34:02 +0200 Subject: [PATCH] build: avoids link error when CCACHE is not activated Change-Id: I31d7578cc20b9b64c7c144935f93576b6349597e Signed-off-by: Fabien Chereau Signed-off-by: Anas Nashif --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 4c7009e03ba..d2ae0550fd8 100644 --- a/Makefile +++ b/Makefile @@ -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