Here's the code block for the rebuild_cache command. You can see I just commented out the OUTPUT_FILE line and used the existing tee command, just like done one block below for the full build.
I've got no idea why this worked, but I noticed the problem, made the above change, and then ran it while I took care of a few other things. When I saw it worked I forgot to follow up on why exactly it was broken in the first place.
Here's the code block for the rebuild_cache command. You can see I just commented out the OUTPUT_FILE line and used the existing tee command, just like done one block below for the full build.
execute_process( /make_$ {BUILD} _cache. log" /${BUILD} " /make_$ {BUILD} _cache. log" /make_$ {BUILD} _cache. log"
COMMAND ${MINGW_MAKE} ${MAKE_KI_OPTS} rebuild_cache
COMMAND ${TEE_COMMAND} "${LOGDIR}
WORKING_DIRECTORY "${BUILDDIR}
# OUTPUT_FILE "${LOGDIR}
ERROR_FILE "${LOGDIR}
RESULT_VARIABLE kicad_NOT_BUILT )
I've got no idea why this worked, but I noticed the problem, made the above change, and then ran it while I took care of a few other things. When I saw it worked I forgot to follow up on why exactly it was broken in the first place.