Skip to content

Commit 9924635

Browse files
committed
Disable LTO/IPO for targets using the UART
1 parent 23b50e6 commit 9924635

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Sts1CobcSw/Edu/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL Generic)
1616
Sts1CobcSw_RodosTime
1717
Sts1CobcSw_Vocabulary
1818
)
19+
set_target_properties(Sts1CobcSw_Edu PROPERTIES INTERPROCEDURAL_OPTIMIZATION_MINSIZEREL OFF)
1920
endif()
2021
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
2122
target_sources(Sts1CobcSw_Edu PRIVATE EduMock.cpp)

Sts1CobcSw/Rf/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL Generic)
1717
Sts1CobcSw_RodosTime
1818
Sts1CobcSw_Utility
1919
)
20+
set_target_properties(Sts1CobcSw_Rf PROPERTIES INTERPROCEDURAL_OPTIMIZATION_MINSIZEREL OFF)
2021
else()
2122
target_sources(Sts1CobcSw_Rf PRIVATE Rf.cpp)
2223
target_link_libraries(

0 commit comments

Comments
 (0)