mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge pull request #749 from AndersHoglund/add_ccache
Use ccache if it is installed on the system.
This commit is contained in:
commit
26a7ea9d97
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