mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Use ccache if it is installed on the system.
This commit is contained in:
parent
60b10cdadb
commit
4d69682c96
1 changed files with 10 additions and 3 deletions
13
Makefile
13
Makefile
|
@ -546,10 +546,17 @@ VPATH := $(VPATH):$(STDPERIPH_DIR)/src
|
||||||
# Things that might need changing to use different tools
|
# 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
|
# Tool names
|
||||||
CC = arm-none-eabi-gcc
|
CC := $(CCACHE) arm-none-eabi-gcc
|
||||||
OBJCOPY = arm-none-eabi-objcopy
|
OBJCOPY := arm-none-eabi-objcopy
|
||||||
SIZE = arm-none-eabi-size
|
SIZE := arm-none-eabi-size
|
||||||
|
|
||||||
#
|
#
|
||||||
# Tool options.
|
# Tool options.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue