Skip to content

Commit e3f4ee4

Browse files
committed
fix(build_opt): append to the file instead of overwrite
Fixes #1749 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 319acb3 commit e3f4ee4

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
@@ -22,7 +22,7 @@ fi
2222
# Append -fmacro-prefix-map option to change __FILE__ absolute path of the board
2323
# platform folder to a relative path by using '.'.
2424
# (i.e. the folder containing boards.txt)
25-
printf '\n-fmacro-prefix-map=%s=.' "${BOARD_PLATFORM_PATH//\\/\\\\}" > "$BUILD_PATH/sketch/build.opt"
25+
printf '\n-fmacro-prefix-map=%s=.' "${BOARD_PLATFORM_PATH//\\/\\\\}" >> "$BUILD_PATH/sketch/build.opt"
2626

2727
# Force include of SrcWrapper library
2828
echo "#include <SrcWrapper.h>" > "$BUILD_PATH/sketch/SrcWrapper.cpp"

0 commit comments

Comments
 (0)