disabled LTO, causing issues
This commit is contained in:
@@ -69,9 +69,7 @@ add_compile_options(
|
|||||||
-Wall
|
-Wall
|
||||||
-Wextra
|
-Wextra
|
||||||
-Wpedantic
|
-Wpedantic
|
||||||
-Wno-unused-parameter
|
-Wno-unused-parameter)
|
||||||
-flto=8
|
|
||||||
)
|
|
||||||
|
|
||||||
add_link_options(
|
add_link_options(
|
||||||
-T${linker_script_SRC}
|
-T${linker_script_SRC}
|
||||||
@@ -86,7 +84,6 @@ add_link_options(
|
|||||||
-lstdc++
|
-lstdc++
|
||||||
-lsupc++
|
-lsupc++
|
||||||
-Wl,--end-group
|
-Wl,--end-group
|
||||||
-flto=8
|
|
||||||
-Wl,-z,max-page-size=8 # Allow good software remapping across address space (with proper GCC section making)
|
-Wl,-z,max-page-size=8 # Allow good software remapping across address space (with proper GCC section making)
|
||||||
-Wl,--print-memory-usage
|
-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 ihex $<TARGET_FILE:${CMAKE_PROJECT_NAME}> ${CMAKE_PROJECT_NAME}.hex
|
||||||
COMMAND ${CMAKE_OBJCOPY} -O binary $<TARGET_FILE:${CMAKE_PROJECT_NAME}> ${CMAKE_PROJECT_NAME}.bin
|
COMMAND ${CMAKE_OBJCOPY} -O binary $<TARGET_FILE:${CMAKE_PROJECT_NAME}> ${CMAKE_PROJECT_NAME}.bin
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
add_subdirectory(tools)
|
||||||
Reference in New Issue
Block a user