mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +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
|
||||
#
|
||||
|
||||
# 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue