Skip to content

Commit d96ca05

Browse files
authored
Update copy-libs.sh
1 parent 2f83726 commit d96ca05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/copy-libs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ str=`printf '%b' "$str"` #unescape the string
140140
set -- $str
141141
for item in "${@:2:${#@}-5}"; do
142142
prefix="${item:0:2}"
143-
if [[ "$prefix" != "-I" && "$prefix" != "-D" && "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" && "$prefix" != "-O" ]]; then
143+
if [[ "$prefix" != "-I" && "$prefix" != "-D" && "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" && "$item" != "-fno-lto" && "$prefix" != "-O" ]]; then
144144
if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" && "${item:0:20}" != "-fdiagnostics-color=" && "${item:0:19}" != "-fdebug-prefix-map=" ]]; then
145145
CPP_FLAGS+="$item "
146146
if [[ $PIO_CC_FLAGS != *"$item"* ]]; then

0 commit comments

Comments
 (0)