Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3734a0a

Browse files
authoredSep 21, 2024
Update CMakeLists.txt
1 parent c6c7dc6 commit 3734a0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎main/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ set(CMAKE_RANLIB ${_CMAKE_TOOLCHAIN_PREFIX}gcc-ranlib)
55
list(APPEND compile_options "-ffat-lto-objects -flto-compression-level=9 -flto=auto -malign-data=natural")
66
list(APPEND CMAKE_EXE_LINKER_FLAGS "-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=max")
77

8+
idf_build_set_property(COMPILE_OPTIONS "${compile_options}" APPEND)
9+
idf_build_set_property(CMAKE_EXE_LINKER_FLAGS "${cmake_exe_linker_flags}" APPEND)
810
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)
Please sign in to comment.