From ae1fdab0259f7d906c9ed5eb9e717326dfbf2b1c Mon Sep 17 00:00:00 2001 From: Oliver Walter Date: Sat, 3 Feb 2024 02:54:21 +0100 Subject: [PATCH] disabled LTO, causing issues --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a29b9e0..7aaf409 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,9 +69,7 @@ add_compile_options( -Wall -Wextra -Wpedantic - -Wno-unused-parameter - -flto=8 -) + -Wno-unused-parameter) add_link_options( -T${linker_script_SRC} @@ -86,7 +84,6 @@ add_link_options( -lstdc++ -lsupc++ -Wl,--end-group - -flto=8 -Wl,-z,max-page-size=8 # Allow good software remapping across address space (with proper GCC section making) -Wl,--print-memory-usage ) @@ -161,3 +158,6 @@ add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_OBJCOPY} -O ihex $ ${CMAKE_PROJECT_NAME}.hex COMMAND ${CMAKE_OBJCOPY} -O binary $ ${CMAKE_PROJECT_NAME}.bin ) + + +add_subdirectory(tools) \ No newline at end of file