From 04e0fea532159d0993b0af5747703db8c4825ffe Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Sat, 31 Aug 2024 00:55:39 +0400 Subject: [PATCH] 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 --- cmake/developer_package/features.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/developer_package/features.cmake b/cmake/developer_package/features.cmake index d2fdcd4cf12049..99e99145d30d1c 100644 --- a/cmake/developer_package/features.cmake +++ b/cmake/developer_package/features.cmake @@ -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)