Skip to content

Commit 04e0fea

Browse files
Disabled LTO for gcc older than 9.0 (#26330)
### Details: - Gcc 8.x has multiple bug for LTO - Let's have 9.x and higher as required for LTO ### Tickets: - CVS-150950
1 parent 6d31a50 commit 04e0fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/developer_package/features.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ else()
1111
set (CPACK_GENERATOR "TGZ" CACHE STRING "Cpack generator for OpenVINO")
1212
endif()
1313

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

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

0 commit comments

Comments
 (0)