1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Use ccache if it is installed on the system.

This commit is contained in:
Anders Hoglund 2016-07-14 10:33:05 +01:00
parent 60b10cdadb
commit 4d69682c96

View file

@ -546,10 +546,17 @@ VPATH := $(VPATH):$(STDPERIPH_DIR)/src
# Things that might need changing to use different tools
#
# Find out if ccache is installed on the system
CCACHE := ccache
RESULT = $(shell which $(CCACHE))
ifeq ($(RESULT),)
CCACHE :=
endif
# Tool names
CC = arm-none-eabi-gcc
OBJCOPY = arm-none-eabi-objcopy
SIZE = arm-none-eabi-size
CC := $(CCACHE) arm-none-eabi-gcc
OBJCOPY := arm-none-eabi-objcopy
SIZE := arm-none-eabi-size
#
# Tool options.