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
This commit is contained in:
parent
23953244a8
commit
48fc1f9781
1 changed files with 1 additions and 4 deletions
|
@ -18,10 +18,7 @@ ifeq ($(CONFIG_CCACHE),)
|
||||||
CMAKE_C_COMPILER_ARG1:=
|
CMAKE_C_COMPILER_ARG1:=
|
||||||
CMAKE_CXX_COMPILER_ARG1:=
|
CMAKE_CXX_COMPILER_ARG1:=
|
||||||
else
|
else
|
||||||
CCACHE:=$(shell which ccache)
|
CCACHE:=$(STAGING_DIR_HOST)/bin/ccache
|
||||||
ifeq ($(CCACHE),)
|
|
||||||
CCACHE:=$(STAGING_DIR_HOST)/bin/ccache
|
|
||||||
endif
|
|
||||||
CMAKE_C_COMPILER:=$(CCACHE)
|
CMAKE_C_COMPILER:=$(CCACHE)
|
||||||
CMAKE_C_COMPILER_ARG1:=$(TARGET_CC_NOCACHE)
|
CMAKE_C_COMPILER_ARG1:=$(TARGET_CC_NOCACHE)
|
||||||
CMAKE_CXX_COMPILER:=$(CCACHE)
|
CMAKE_CXX_COMPILER:=$(CCACHE)
|
||||||
|
|
Loading…
Reference in a new issue