[ESP-IDF5.1] Add LTO to reduce bin size for ESP-IDF5.1 SPIFFS build

This commit is contained in:
TD-er
2024-08-24 00:46:50 +02:00
parent c07529fa89
commit f648208f05
+2 -2
View File
@@ -18,14 +18,14 @@ extra_scripts = post:tools/pio/post_esp32.py
; more detail: https://embeddedartistry.com/blog/2020/04/13/prefer-gcc-ar-to-ar-in-your-buildsystems/
; pre:tools/pio/apply_patches.py
build_unflags = -Wall
; -fno-lto
-fno-lto
build_flags = ${core_esp32_IDF5_1__3_0_2_SPIFFS.build_flags}
; ${mqtt_flags.build_flags}
-DMQTT_MAX_PACKET_SIZE=2048
-DCONFIG_FREERTOS_ASSERT_DISABLE
-DCONFIG_LWIP_ESP_GRATUITOUS_ARP
-fno-strict-aliasing
; -flto
-flto=auto
-Wswitch
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
monitor_filters = esp32_exception_decoder