From e65a69b7c03a556f0915f433c1a206d0be508530 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Mon, 31 Oct 2016 12:59:49 +0000 Subject: [PATCH] target: zephyr: Fix build when USE_CCACHE=1 (#1413) Currently if USE_CCACHE=1 is set to one than the Zephyr build system will include ccache in the CC variable. ccache cannot be passed to cmake using EXTERNAL_CMAKE_C_COMPILER (even if we fix the quoting) because it fails a PATH reachability test within cmake. For that reasons we solve the build failure simply by removing ccahce from CC before we pass it into cmake. The problem described about is a regression due to commit ac1bf19c90d6 ("build: Adopt outputexports") and the fix contained in this patch restores the original behaviour (zephyr exploits ccache, jerryscript library build does not). JerryScript-DCO-1.0-Signed-off-by: Daniel Thompson daniel.thompson@linaro.org --- targets/zephyr/Makefile.zephyr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/zephyr/Makefile.zephyr b/targets/zephyr/Makefile.zephyr index 6f7422201..5f935d0d8 100644 --- a/targets/zephyr/Makefile.zephyr +++ b/targets/zephyr/Makefile.zephyr @@ -84,7 +84,7 @@ endif -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_VERBOSE_MAKEFILE=$(V) \ -DMEM_HEAP_SIZE_KB=$(JERRYHEAP) \ - -DEXTERNAL_CMAKE_C_COMPILER=$(CC) \ + -DEXTERNAL_CMAKE_C_COMPILER="$(subst ccache ,,$(CC))" \ -DEXTERNAL_CMAKE_C_COMPILER_ID=GNU \ -DJERRY_CMDLINE=OFF \ -DEXTERNAL_COMPILE_FLAGS="$(EXT_CFLAGS)" \