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 ac1bf19c90
("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
This commit is contained in:
committed by
Akos Kiss
parent
ff6b3a9b02
commit
e65a69b7c0
@@ -84,7 +84,7 @@ endif
|
|||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_VERBOSE_MAKEFILE=$(V) \
|
-DCMAKE_VERBOSE_MAKEFILE=$(V) \
|
||||||
-DMEM_HEAP_SIZE_KB=$(JERRYHEAP) \
|
-DMEM_HEAP_SIZE_KB=$(JERRYHEAP) \
|
||||||
-DEXTERNAL_CMAKE_C_COMPILER=$(CC) \
|
-DEXTERNAL_CMAKE_C_COMPILER="$(subst ccache ,,$(CC))" \
|
||||||
-DEXTERNAL_CMAKE_C_COMPILER_ID=GNU \
|
-DEXTERNAL_CMAKE_C_COMPILER_ID=GNU \
|
||||||
-DJERRY_CMDLINE=OFF \
|
-DJERRY_CMDLINE=OFF \
|
||||||
-DEXTERNAL_COMPILE_FLAGS="$(EXT_CFLAGS)" \
|
-DEXTERNAL_COMPILE_FLAGS="$(EXT_CFLAGS)" \
|
||||||
|
|||||||
Reference in New Issue
Block a user