From af69f6a72b6077f76b6159b5b70ebba72ba8995d Mon Sep 17 00:00:00 2001 From: Taylor Yu Date: Sun, 2 Oct 2022 15:45:13 -0500 Subject: [PATCH] fix race in sketch.mk Fix a race condition in `sketch.mk` that tends to pop up when doing `make -j smoke-sketches`. Ignore failures from `install -d`, because they seem to only occur due to a TOCTOU condition in `install`. Signed-off-by: Taylor Yu --- etc/makefiles/sketch.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/makefiles/sketch.mk b/etc/makefiles/sketch.mk index 99c00789..36d2074f 100644 --- a/etc/makefiles/sketch.mk +++ b/etc/makefiles/sketch.mk @@ -164,7 +164,7 @@ endif compile: kaleidoscope-hardware-configured - $(QUIET) install -d "${OUTPUT_PATH}" + -$(QUIET) install -d "${OUTPUT_PATH}" $(QUIET) $(ARDUINO_CLI) compile --fqbn "${FQBN}" ${ARDUINO_VERBOSE} ${ccache_wrapper_property} ${local_cflags_property} \ ${_arduino_local_libraries_prop} ${_ARDUINO_CLI_COMPILE_CUSTOM_FLAGS} \ --library "${KALEIDOSCOPE_DIR}" \