LTO for frontends and python (#12890)

This commit is contained in:
Ilya Lavrenov
2022-09-05 08:10:11 +04:00
committed by GitHub
parent 57a9d7ce7b
commit 836765874e
14 changed files with 27 additions and 15 deletions

View File

@@ -173,6 +173,10 @@ macro(ov_add_frontend)
"-DGetAPIVersion=GetAPIVersion${OV_FRONTEND_NAME}")
endif()
# enable LTO
set_target_properties(${TARGET_NAME} PROPERTIES
INTERPROCEDURAL_OPTIMIZATION_RELEASE ${ENABLE_LTO})
if(OV_FRONTEND_SKIP_NCC_STYLE)
# frontend's CMakeLists.txt must define its own custom 'ov_ncc_naming_style' step
else()