Skip to content

Commit

Permalink
Disabled LTO for gcc older than 9.0 (#26330)
Browse files Browse the repository at this point in the history
### Details:
 - Gcc 8.x has multiple bug for LTO
 - Let's have 9.x and higher as required for LTO

### Tickets:
 - CVS-150950
  • Loading branch information
ilya-lavrenov authored Aug 30, 2024
1 parent 6d31a50 commit 04e0fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/developer_package/features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ else()
set (CPACK_GENERATOR "TGZ" CACHE STRING "Cpack generator for OpenVINO")
endif()

ov_dependent_option (ENABLE_LTO "Enable Link Time Optimization" OFF "LINUX;NOT ARM;CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.9" OFF)
ov_dependent_option (ENABLE_LTO "Enable Link Time Optimization" OFF "LINUX;NOT ARM;CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.0" OFF)

ov_option (OS_FOLDER "create OS dedicated folder in output" OFF)

Expand Down

0 comments on commit 04e0fea

Please sign in to comment.