Use linker Option lto

This commit is contained in:
Jason2866 2022-01-14 23:27:15 +01:00 committed by GitHub
parent 9136a7d3aa
commit 9ca01dcc54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,11 +7,13 @@ build_unflags = ${esp_defaults.build_unflags}
-Wincompatible-pointer-types
-Wnonnull-compare
-fexceptions
-fno-lto
-Wpointer-arith
build_flags = ${esp_defaults.build_flags}
-Wno-switch-unreachable
-Wno-stringop-overflow
-fno-exceptions
-flto
-DBUFFER_LENGTH=128
-DHTTP_UPLOAD_BUFLEN=2048
-DMQTT_MAX_PACKET_SIZE=1200