diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-03 14:44:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-03 14:44:30 +0000 |
commit | 48fc1f97812324325df214362955ee02f97d6e84 (patch) | |
tree | c0ebb052135c073bea430c15705940c86f335964 /include | |
parent | 23953244a89e435f000da7bf1c5d84df588f2233 (diff) | |
download | mtk-20170518-48fc1f97812324325df214362955ee02f97d6e84.zip mtk-20170518-48fc1f97812324325df214362955ee02f97d6e84.tar.gz mtk-20170518-48fc1f97812324325df214362955ee02f97d6e84.tar.bz2 |
build: for cmake, always use ccache from staging dir instead of relying on the host
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48079
Diffstat (limited to 'include')
-rw-r--r-- | include/cmake.mk | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/cmake.mk b/include/cmake.mk index 4207a4d..4e4169a 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) |