Skip to content

Commit ef373ed

Browse files
authored
remov no lto
1 parent 5a5e09c commit ef373ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/copy-libs.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ LD_SCRIPTS=""
6464
LD_SCRIPT_DIRS=""
6565

6666
PIO_CC_FLAGS="-flto=auto "
67-
PIO_C_FLAGS=""
67+
PIO_C_FLAGS="-flto=auto "
6868
PIO_CXX_FLAGS="-flto=auto "
6969
PIO_AS_FLAGS=""
7070
PIO_LD_FLAGS="-flto "
@@ -108,7 +108,7 @@ for item in "${@:2:${#@}-5}"; do
108108
elif [ "$prefix" = "-O" ]; then
109109
PIO_CC_FLAGS+="$item "
110110
elif [[ "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" ]]; then
111-
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
111+
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=" && "${item:0:8}" != "-fno-lto" ]]; then
112112
C_FLAGS+="$item "
113113
fi
114114
fi

0 commit comments

Comments
 (0)