From 968f2cbb1aa027a3eab482ae9aca47046d0fe163 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 27 Mar 2022 20:31:31 -0700 Subject: [PATCH] enable cccache for cmake --- tests/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index 20c6bed0..df1be532 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -86,7 +86,9 @@ ${top_dir}/testing/googletest/build/Makefile: -S ${top_dir}/testing/googletest \ -B ${top_dir}/testing/googletest/build \ -DCMAKE_C_COMPILER=$(call _arduino_prop,compiler.path)$(call _arduino_prop,compiler.c.cmd) \ - -DCMAKE_CXX_COMPILER=$(call _arduino_prop,compiler.path)$(call _arduino_prop,compiler.cpp.cmd) + -DCMAKE_CXX_COMPILER=$(call _arduino_prop,compiler.path)$(call _arduino_prop,compiler.cpp.cmd) \ + -DCMAKE_C_COMPILER_LAUNCHER=ccache \ + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ${libcommon_a}: $(QUIET) ${MAKE} -f ${top_dir}/testing/makefiles/libcommon.mk -C ${top_dir}/testing