Enabled LTO for ARM64 (#22842)
### Details: - Enabled LTO for Linux ARM64, because now we use more fresh compiler version from Ubuntu 20.04, while older ones have issues with LTO on arm64
This commit is contained in:
parent
5d38f990e6
commit
9256e42171
|
|
@ -220,6 +220,8 @@ set(CMAKE_POLICY_DEFAULT_CMP0094 NEW)
|
|||
set(CMAKE_POLICY_DEFAULT_CMP0111 NEW)
|
||||
# CMake 3.22+ :cmake_dependent_option() supports full Condition Syntax
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0127 NEW)
|
||||
# CMake 3.24+ :prefers to set the timestamps of all extracted contents to the time of the extraction
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0135 NEW)
|
||||
|
||||
set(CMAKE_WARN_DEPRECATED OFF CACHE BOOL "Don't warn about obsolete cmake versions in 3rdparty")
|
||||
set(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION ON CACHE BOOL "Warn about absolute paths in destination")
|
||||
|
|
|
|||
|
|
@ -8,10 +8,7 @@ include(target_flags)
|
|||
set (CPACK_GENERATOR "TGZ" CACHE STRING "Cpack generator for OpenVINO")
|
||||
list (APPEND OV_OPTIONS CPACK_GENERATOR)
|
||||
|
||||
# FIXME: there are compiler failures with LTO and Cross-Compile toolchains. Disabling for now, but
|
||||
# this must be addressed in a proper way
|
||||
ov_dependent_option (ENABLE_LTO "Enable Link Time Optimization" OFF
|
||||
"LINUX;EMSCRIPTEN OR NOT CMAKE_CROSSCOMPILING;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 4.9" OFF)
|
||||
|
||||
ov_option (OS_FOLDER "create OS dedicated folder in output" OFF)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue