Skip to content
Snippets Groups Projects
Commit 9706d4e0 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

cmake.mk: fix support for ccache


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

SVN-Revision: 38853
parent cd1c8d46
No related branches found
No related tags found
No related merge requests found
...@@ -24,9 +24,9 @@ else ...@@ -24,9 +24,9 @@ else
CCACHE:=$(STAGING_DIR_HOST)/bin/ccache CCACHE:=$(STAGING_DIR_HOST)/bin/ccache
endif endif
CMAKE_C_COMPILER:=$(CCACHE) 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:=$(CCACHE)
CMAKE_CXX_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CXX)) CMAKE_CXX_COMPILER_ARG1:=$(TARGET_CXX_NOCACHE)
endif endif
define Build/Configure/Default define Build/Configure/Default
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment