We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73adaad commit 9567cdbCopy full SHA for 9567cdb
tools/copy-libs.sh
@@ -322,12 +322,12 @@ done
322
323
mkdir -p "$AR_SDK"
324
325
-# Extract flags with "-m"
+# Keep only -march, -mabi and -mlongcalls flags for Assembler
326
PIO_AS_FLAGS=$(
327
- {
328
- echo "$PIO_CXX_FLAGS" | grep -o '\-m[^[:space:]]*'
329
- echo "$PIO_CC_FLAGS" | grep -o '\-m[^[:space:]]*'
330
- } | awk '!seen[$0]++' | tr '\n' ' '
+ {Öl
+ echo "$PIO_CXX_FLAGS" | grep -oE '\-march=[^[:space:]]*|\-mabi=[^[:space:]]*|\-mlongcalls'
+ echo "$PIO_C_FLAGS" | grep -oE '\-march=[^[:space:]]*|\-mabi=[^[:space:]]*|\-mlongcalls'
+ } | awk '!seen[$0]++' | paste -sd ' '
331
)
332
333
# start generation of pioarduino-build.py
0 commit comments