I'm tired of forgetting to apply this patch.

cmake can pick up a system ccache in a way that it is invoking itself.
This causes configuration to fail.

Since we have no-cache versions of CC and CXX configuration variables,
use them as a basis for constructing the ccache version.

Signed-off-by: Jay Carlson <n...@nop.com>
---
 include/cmake.mk |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/cmake.mk b/include/cmake.mk
index 7746321..619ee98 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:=$(filter-out ccache,$(TARGET_CC_NOCACHE))
   CMAKE_CXX_COMPILER:=$(CCACHE)
-  CMAKE_CXX_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CXX))
+  CMAKE_CXX_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CXX_NOCACHE))
 endif
 
 define Build/Configure/Default
-- 
1.7.9.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to