Skip to content

Commit bf0b3e3

Browse files
committed
fix: printf with -f at the beginning of a format string
is recognized as an option Signed-off-by: Frederic Pillon <[email protected]>
1 parent 3912678 commit bf0b3e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: system/extras/prebuild.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fi
1414
# the board platform folder to a relative path by using '.'.
1515
# (i.e. the folder containing boards.txt)
1616
if [ ! -f "$BUILD_SOURCE_PATH/build_opt.h" ]; then
17-
printf '-fmacro-prefix-map="%s"=.' "${BOARD_PLATFORM_PATH//\\/\\\\}" > "$BUILD_PATH/sketch/build.opt"
17+
printf '\n-fmacro-prefix-map="%s"=.' "${BOARD_PLATFORM_PATH//\\/\\\\}" > "$BUILD_PATH/sketch/build.opt"
1818
else
1919
# Else copy the build_opt.h as build.opt
2020
# Workaround to the header file preprocessing done by arduino-cli

0 commit comments

Comments
 (0)