enable ccache where available
This commit is contained in:
parent
e461d9879b
commit
2b9a8d13c8
12
Makefile
12
Makefile
|
@ -187,10 +187,6 @@ ifeq ($(TARGET),riscos)
|
||||||
EXEEXT := ,ff8
|
EXEEXT := ,ff8
|
||||||
endif
|
endif
|
||||||
PKG_CONFIG := $(GCCSDK_INSTALL_ENV)/ro-pkg-config
|
PKG_CONFIG := $(GCCSDK_INSTALL_ENV)/ro-pkg-config
|
||||||
CCACHE := $(shell which ccache)
|
|
||||||
ifneq ($(CCACHE),)
|
|
||||||
CC := $(CCACHE) $(CC)
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
ifeq ($(TARGET),beos)
|
ifeq ($(TARGET),beos)
|
||||||
|
@ -267,8 +263,14 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Target paths
|
|
||||||
|
|
||||||
|
# CCACHE
|
||||||
|
ifeq ($(origin CCACHE),undefined)
|
||||||
|
CCACHE=$(shell ccache -V >/dev/null 2>&1 && echo ccache || echo)
|
||||||
|
endif
|
||||||
|
CC := $(CCACHE) $(CC)
|
||||||
|
|
||||||
|
# Target paths
|
||||||
OBJROOT = build-$(HOST)-$(TARGET)$(SUBTARGET)
|
OBJROOT = build-$(HOST)-$(TARGET)$(SUBTARGET)
|
||||||
DEPROOT := $(OBJROOT)/deps
|
DEPROOT := $(OBJROOT)/deps
|
||||||
TOOLROOT := $(OBJROOT)/tools
|
TOOLROOT := $(OBJROOT)/tools
|
||||||
|
|
Loading…
Reference in New Issue