You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/copy-libs.sh
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -65,9 +65,9 @@ LD_SCRIPT_DIRS=""
65
65
66
66
PIO_CC_FLAGS=""
67
67
PIO_C_FLAGS=""
68
-
PIO_CXX_FLAGS=""
68
+
PIO_CXX_FLAGS="-flto=auto "
69
69
PIO_AS_FLAGS=""
70
-
PIO_LD_FLAGS=""
70
+
PIO_LD_FLAGS="-flto "
71
71
PIO_LD_FUNCS=""
72
72
PIO_LD_SCRIPTS=""
73
73
@@ -121,7 +121,7 @@ str=`printf '%b' "$str"` #unescape the string
121
121
set -- $str
122
122
foritemin"${@:2:${#@}-5}";do
123
123
prefix="${item:0:2}"
124
-
if [[ "$prefix"!="-I"&&"$prefix"!="-D"&&"$item"!="-Wall"&&"$item"!="-Werror=all"&&"$item"!="-Wextra"&&"$prefix"!="-O" ]];then
124
+
if [[ "$prefix"!="-I"&&"$prefix"!="-D"&&"$item"!="-Wall"&&"$item"!="-Werror=all"&&"$item"!="-Wextra"&&"$item"!="-fno-lto"&&"$prefix"!="-O" ]];then
125
125
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
126
126
AS_FLAGS+="$item"
127
127
if [[ $C_FLAGS==*"$item"* ]];then
@@ -140,7 +140,7 @@ str=`printf '%b' "$str"` #unescape the string
140
140
set -- $str
141
141
foritemin"${@:2:${#@}-5}";do
142
142
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
144
144
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
0 commit comments