Browse Source

Makefile: add an optional compiler wrapper (#2066)

Use as 'make WRAPCC="ccache"', for example.
Nathaniel Wesley Filardo 6 years ago
parent
commit
569628789c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Makefile

+ 2 - 2
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)