Skip to content

Commit 08112b0

Browse files
authored
Update CMakeLists.txt
1 parent 7f9b3b7 commit 08112b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22
set(CMAKE_AR ${_CMAKE_TOOLCHAIN_PREFIX}gcc-ar)
33
set(CMAKE_RANLIB ${_CMAKE_TOOLCHAIN_PREFIX}gcc-ranlib)
44

5+
list(APPEND compile_options "-ffat-lto-objects"
6+
"-flto-compression-level=9"
7+
"-flto=auto")
8+
59
idf_component_register(SRCS "sketch.cpp" "arduino-lib-builder-gcc.c" "arduino-lib-builder-cpp.cpp" "arduino-lib-builder-as.S" INCLUDE_DIRS ".")

0 commit comments

Comments
 (0)