Skip to content

Commit cfa3aa6

Browse files
committed
Update prepare-libs.sh
1 parent 1225dcb commit cfa3aa6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/prepare-libs.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,9 @@ echo " CFLAGS=[" >> "$AR_PLATFORMIO_PY"
245245
set -- $PIO_C_FLAGS
246246
last_item="${@: -1}"
247247
for item in "${@:0:${#@}}"; do
248-
echo " \"$item\"," >> "$AR_PLATFORMIO_PY"
248+
if [ "${item:0:1}" != "/" ]; then
249+
echo " \"$item\"," >> "$AR_PLATFORMIO_PY"
250+
fi
249251
done
250252
echo " \"$last_item\"" >> "$AR_PLATFORMIO_PY"
251253
echo " ]," >> "$AR_PLATFORMIO_PY"
@@ -255,7 +257,9 @@ echo " CXXFLAGS=[" >> "$AR_PLATFORMIO_PY"
255257
set -- $PIO_CXX_FLAGS
256258
last_item="${@: -1}"
257259
for item in "${@:0:${#@}}"; do
258-
echo " \"$item\"," >> "$AR_PLATFORMIO_PY"
260+
if [ "${item:0:1}" != "/" ]; then
261+
echo " \"$item\"," >> "$AR_PLATFORMIO_PY"
262+
fi
259263
done
260264
echo " \"$last_item\"" >> "$AR_PLATFORMIO_PY"
261265
echo " ]," >> "$AR_PLATFORMIO_PY"

0 commit comments

Comments
 (0)