Hi All,
I'm trying to speed up kicad compile time with ccache under windows.
I made a huge step with it, so I want to share my setting to the community.
Before use ccache: the compile time in my env is 20~ minutes,
After use ccache: the compile time reduces to 3~ minutes.
Background:
There are some settings about ccache in CMakeLists.txt. but it isn't work.
if (USE_CCACHE)
find_program(CCACHE_BINARY ccache)
if(CCACHE_FOUND)
get_property(RULE_LAUNCH_COMPILE GLOBAL PROPERTY RULE_LAUNCH_COMPILE)
...
So I tried to adapt it to my windows env.
Below is my setting:
find_program(CCACHE_FOUND ccache PATHS "D:\\ccache-4.9.1-windows-x86_64")
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_FOUND})
set(CMAKE_CXX_COMPILER_LAUNCHER ${
CCACHE_FOUND})
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded)
cmake_policy(SET CMP0141 NEW)
Below is my reference:
Sincerely
Liang