Try ccache #769
This commit is contained in:
parent
4dac92e202
commit
3ea876f849
|
@ -25,6 +25,12 @@ ifeq ($(DEBUG_LEVEL_OPT),)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
ifneq ($(CCACHE_DIR),)
|
||||||
|
$(info CCACHE_DIR is ${CCACHE_DIR})
|
||||||
|
CCPREFIX=ccache
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = $(EXTRA_PARAMS) $(DEBUG_LEVEL_OPT) $(RFLAGS) -Wno-error=implicit-fallthrough -Wno-error=bool-operation -fomit-frame-pointer -falign-functions=16 -Werror-implicit-function-declaration -Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Werror=missing-field-initializers -Werror=type-limits -Wno-error=strict-aliasing -Wno-error=attributes
|
USE_OPT = $(EXTRA_PARAMS) $(DEBUG_LEVEL_OPT) $(RFLAGS) -Wno-error=implicit-fallthrough -Wno-error=bool-operation -fomit-frame-pointer -falign-functions=16 -Werror-implicit-function-declaration -Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Werror=missing-field-initializers -Werror=type-limits -Wno-error=strict-aliasing -Wno-error=attributes
|
||||||
|
@ -315,8 +321,8 @@ ifeq ($(CROSS_COMPILE),)
|
||||||
else
|
else
|
||||||
TRGT = $(CROSS_COMPILE)
|
TRGT = $(CROSS_COMPILE)
|
||||||
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