Makefile: add an optional compiler wrapper (#2066)

Use as 'make WRAPCC="ccache"', for example.
This commit is contained in:
Nathaniel Wesley Filardo 2017-08-17 01:23:00 -04:00 committed by Marcel Stör
parent fe032edd9c
commit 569628789c
1 changed files with 2 additions and 2 deletions

View File

@ -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)