From 569628789cdf83fa6b0e27bafa5624c6b29b701d Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Thu, 17 Aug 2017 01:23:00 -0400 Subject: [PATCH] Makefile: add an optional compiler wrapper (#2066) Use as 'make WRAPCC="ccache"', for example. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 395339d4..840f7a3b 100644 --- a/Makefile +++ b/Makefile @@ -76,9 +76,9 @@ else endif CCFLAGS += -ffunction-sections -fno-jump-tables -fdata-sections AR = xtensa-lx106-elf-ar - CC = xtensa-lx106-elf-gcc + CC = $(WRAPCC) xtensa-lx106-elf-gcc NM = xtensa-lx106-elf-nm - CPP = xtensa-lx106-elf-cpp + CPP = $(WRAPCC) xtensa-lx106-elf-gcc -E OBJCOPY = xtensa-lx106-elf-objcopy FIRMWAREDIR = ../bin/ UNAME_S := $(shell uname -s)