disabled LTO, causing issues

This commit is contained in:
2024-02-03 02:54:21 +01:00
parent 62f8d6db29
commit ae1fdab025

View File

@@ -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 $<TARGET_FILE:${CMAKE_PROJECT_NAME}> ${CMAKE_PROJECT_NAME}.hex
COMMAND ${CMAKE_OBJCOPY} -O binary $<TARGET_FILE:${CMAKE_PROJECT_NAME}> ${CMAKE_PROJECT_NAME}.bin
)
add_subdirectory(tools)