Skip to content

Commit c61ce03

Browse files
authored
include with prefix from folder flags/include
Claude.AI suggestion
1 parent 5aee121 commit c61ce03

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/copy-libs.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,14 @@ for item; do
453453
fi
454454
done
455455

456-
echo " \"-iprefix \" + join($PIO_SDK, \"include\") + \" @\" + join($PIO_SDK, \"flags\", \"includes\")," >> "$AR_PLATFORMIO_PY"
456+
set -- $REL_INC
457+
for item; do
458+
if [ "${item:0:17}" = "-iwithprefixbefore" ]; then
459+
include_path="${item:18}"
460+
echo " join($PIO_SDK, \"include\", \"$include_path\")," >> "$AR_PLATFORMIO_PY"
461+
fi
462+
done
463+
457464
echo " join($PIO_SDK, board_config.get(\"build.arduino.memory_type\", (board_config.get(\"build.flash_mode\", \"dio\") + \"_qspi\")), \"include\")," >> "$AR_PLATFORMIO_PY"
458465
echo " join(FRAMEWORK_DIR, \"cores\", board_config.get(\"build.core\"))" >> "$AR_PLATFORMIO_PY"
459466
echo " ]," >> "$AR_PLATFORMIO_PY"

0 commit comments

Comments
 (0)