From 5489072e4abce2656de82458470ff7f16e9885a9 Mon Sep 17 00:00:00 2001 From: Ivan Tikhonov Date: Thu, 16 Dec 2021 23:02:30 +0300 Subject: [PATCH] ubuntu20 issue investigation: temporary disable LTO for thirdparty and core parts --- src/core/CMakeLists.txt | 2 +- thirdparty/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index b2d4b621326..7b88b54bde9 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -3,7 +3,7 @@ # if(ENABLE_LTO) - set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON) + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE OFF) endif() add_definitions(-DIN_OV_CORE_LIBRARY) diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index 8737df02196..6eea7665d20 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -7,7 +7,7 @@ if(SUGGEST_OVERRIDE_SUPPORTED) endif() if(ENABLE_LTO) - set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON) + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE OFF) endif() add_subdirectory(ittapi)