From: Felix Fietkau Date: Sun, 3 Jan 2016 14:44:30 +0000 (+0000) Subject: build: for cmake, always use ccache from staging dir instead of relying on the host X-Git-Tag: reboot~1007 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fchunkeey.git;a=commitdiff_plain;h=48fc1f97812324325df214362955ee02f97d6e84;hp=23953244a89e435f000da7bf1c5d84df588f2233 build: for cmake, always use ccache from staging dir instead of relying on the host Signed-off-by: Felix Fietkau SVN-Revision: 48079 --- diff --git a/include/cmake.mk b/include/cmake.mk index 4207a4dcee..4e4169a132 100644 --- a/include/cmake.mk +++ b/include/cmake.mk @@ -18,10 +18,7 @@ ifeq ($(CONFIG_CCACHE),) CMAKE_C_COMPILER_ARG1:= CMAKE_CXX_COMPILER_ARG1:= else - CCACHE:=$(shell which ccache) - ifeq ($(CCACHE),) - CCACHE:=$(STAGING_DIR_HOST)/bin/ccache - endif + CCACHE:=$(STAGING_DIR_HOST)/bin/ccache CMAKE_C_COMPILER:=$(CCACHE) CMAKE_C_COMPILER_ARG1:=$(TARGET_CC_NOCACHE) CMAKE_CXX_COMPILER:=$(CCACHE)