Skip to content

Commit

Permalink
fix the arduino-cli invocation to remove the deprecated --build-cache…
Browse files Browse the repository at this point in the history
…-path and to specify where the builder might find cached artifacts.
  • Loading branch information
obra committed Dec 24, 2024
1 parent c003226 commit 330b032
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions etc/makefiles/sketch.mk
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,14 @@ endif

compile: kaleidoscope-hardware-configured check-rosetta
-$(QUIET) install -d "${OUTPUT_PATH}"
$(QUIET) $(ARDUINO_CLI) compile --fqbn "${FQBN}" ${ARDUINO_VERBOSE} ${ccache_wrapper_property} ${local_cflags_property} \
$(QUIET) \
ARDUINO_BUILD_CACHE_EXTRA_PATHS="${BUILD_PATH}" \
$(ARDUINO_CLI) compile --fqbn "${FQBN}" ${ARDUINO_VERBOSE} ${ccache_wrapper_property} ${local_cflags_property} \
${_arduino_local_libraries_prop} ${_ARDUINO_CLI_COMPILE_CUSTOM_FLAGS} ${kaleidoscope_board_config}\
--library "${KALEIDOSCOPE_DIR}" \
--libraries "${KALEIDOSCOPE_DIR}/plugins/" \
--build-path "${BUILD_PATH}" \
--output-dir "${OUTPUT_PATH}" \
--build-cache-path "${CORE_CACHE_PATH}" \
"${SKETCH_FILE_PATH}"
ifeq ($(LIBONLY),)
$(QUIET) cp "${BUILD_PATH}/${SKETCH_FILE_NAME}.hex" "${HEX_FILE_PATH}"
Expand Down

0 comments on commit 330b032

Please sign in to comment.