From: Felix Fietkau Date: Mon, 18 Nov 2013 14:10:12 +0000 (+0000) Subject: cmake.mk: fix support for ccache X-Git-Tag: reboot~8586 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9706d4e00e4309b0872df87635d214d5a169827d;p=openwrt%2Fopenwrt.git cmake.mk: fix support for ccache Signed-off-by: Felix Fietkau SVN-Revision: 38853 --- diff --git a/include/cmake.mk b/include/cmake.mk index 774632111f..a2ac62fcae 100644 --- a/include/cmake.mk +++ b/include/cmake.mk @@ -24,9 +24,9 @@ else CCACHE:=$(STAGING_DIR_HOST)/bin/ccache endif CMAKE_C_COMPILER:=$(CCACHE) - CMAKE_C_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CC)) + CMAKE_C_COMPILER_ARG1:=$(TARGET_CC_NOCACHE) CMAKE_CXX_COMPILER:=$(CCACHE) - CMAKE_CXX_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CXX)) + CMAKE_CXX_COMPILER_ARG1:=$(TARGET_CXX_NOCACHE) endif define Build/Configure/Default