We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd09a28 commit d10f793Copy full SHA for d10f793
main/CMakeLists.txt
@@ -2,8 +2,7 @@
2
set(CMAKE_AR ${_CMAKE_TOOLCHAIN_PREFIX}gcc-ar)
3
set(CMAKE_RANLIB ${_CMAKE_TOOLCHAIN_PREFIX}gcc-ranlib)
4
5
-list(APPEND compile_options "-ffat-lto-objects"
6
- "-flto-compression-level=9"
7
- "-flto=auto")
+list(APPEND compile_options "-ffat-lto-objects" "-flto-compression-level=9" "-flto=auto")
+list(APPEND CMAKE_EXE_LINKER_FLAGS "-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=max")
8
9
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