Try ccache #769
This commit is contained in:
parent
d0a8a87b37
commit
7c3e88c7dc
|
@ -41,6 +41,13 @@ ifeq ($(USE_LINK_GC),)
|
||||||
USE_LINK_GC = yes
|
USE_LINK_GC = yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CCACHE_DIR),)
|
||||||
|
$(info No CCACHE_DIR)
|
||||||
|
else
|
||||||
|
$(info CCACHE_DIR is ${CCACHE_DIR})
|
||||||
|
CCPREFIX=ccache
|
||||||
|
endif
|
||||||
|
|
||||||
# Linker extra options here.
|
# Linker extra options here.
|
||||||
ifeq ($(USE_LDOPT),)
|
ifeq ($(USE_LDOPT),)
|
||||||
USE_LDOPT =
|
USE_LDOPT =
|
||||||
|
@ -274,8 +281,8 @@ MCU = cortex-m4
|
||||||
|
|
||||||
#TRGT = arm-elf-
|
#TRGT = arm-elf-
|
||||||
TRGT = arm-none-eabi-
|
TRGT = arm-none-eabi-
|
||||||
CC = $(TRGT)gcc
|
CC = $(CCPREFIX) $(TRGT)gcc
|
||||||
CPPC = $(TRGT)g++
|
CPPC = $(CCPREFIX) $(TRGT)g++
|
||||||
# Enable loading with g++ only if you need C++ runtime support.
|
# Enable loading with g++ only if you need C++ runtime support.
|
||||||
# NOTE: You can use C++ even without C++ support if you are careful. C++
|
# NOTE: You can use C++ even without C++ support if you are careful. C++
|
||||||
# runtime support makes code size explode.
|
# runtime support makes code size explode.
|
||||||
|
|
|
@ -15,6 +15,13 @@ ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -c -Wall -O0 -ggdb -g3 -Werror=missing-field-initializers
|
USE_OPT = -c -Wall -O0 -ggdb -g3 -Werror=missing-field-initializers
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CCACHE_DIR),)
|
||||||
|
$(info No CCACHE_DIR)
|
||||||
|
else
|
||||||
|
$(info CCACHE_DIR is ${CCACHE_DIR})
|
||||||
|
CCPREFIX=ccache
|
||||||
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
ifeq ($(USE_COPT),)
|
ifeq ($(USE_COPT),)
|
||||||
USE_COPT = -std=gnu99 -fgnu89-inline
|
USE_COPT = -std=gnu99 -fgnu89-inline
|
||||||
|
@ -189,8 +196,8 @@ else
|
||||||
TRGT =
|
TRGT =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC = $(TRGT)gcc
|
CC = $(CCPREFIX) $(TRGT)gcc
|
||||||
CPPC = $(TRGT)g++
|
CPPC = $(CCPREFIX) $(TRGT)g++
|
||||||
# Enable loading with g++ only if you need C++ runtime support.
|
# Enable loading with g++ only if you need C++ runtime support.
|
||||||
# NOTE: You can use C++ even without C++ support if you are careful. C++
|
# NOTE: You can use C++ even without C++ support if you are careful. C++
|
||||||
# runtime support makes code size explode.
|
# runtime support makes code size explode.
|
||||||
|
|
Loading…
Reference in New Issue