Skip to content

Commit b560458

Browse files
authored
Update copy-libs.sh
1 parent 714ea96 commit b560458

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/copy-libs.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,15 +556,13 @@ for item; do
556556
REL_INC+="-iwithprefixbefore $fname$out_sub "
557557

558558
# Generate CPPPATH entries exactly like original - only for non-Windows
559-
echo " *([] if platform.system() == \"Windows\" else [" >> "$AR_PLATFORMIO_PY"
560559
if [ "$out_sub" = "" ]; then
561-
echo " join($PIO_SDK, \"include\", \"$fname\")" >> "$AR_PLATFORMIO_PY"
560+
echo " *([] if platform.system() == \"Windows\" else [join($PIO_SDK, \"include\", \"$fname\")])," >> "$AR_PLATFORMIO_PY"
562561
else
563562
pio_sub="${out_sub:1}"
564563
pio_sub=`echo $pio_sub | sed 's/\//\\", \\"/g'`
565-
echo " join($PIO_SDK, \"include\", \"$fname\", \"$pio_sub\")" >> "$AR_PLATFORMIO_PY"
564+
echo " *([] if platform.system() == \"Windows\" else [join($PIO_SDK, \"include\", \"$fname\", \"$pio_sub\")])," >> "$AR_PLATFORMIO_PY"
566565
fi
567-
echo " ])," >> "$AR_PLATFORMIO_PY"
568566

569567
# Copy header files exactly like original
570568
for f in `find "$item" -name '*.h'`; do

0 commit comments

Comments
 (0)