Fixed LTO for gcc-9 (ubuntu 20.04) (#2616)

* Fixed LTO for gcc-9 (ubuntu 20.04)

* Fixed ODR rules violation for MKLDNN deprecated functional tests

* Fixed tests build for templatePlugin
This commit is contained in:
Ilya Lavrenov
2020-10-12 06:57:59 +03:00
committed by GitHub
parent a1b8a11000
commit 39e7905fe1
13 changed files with 41 additions and 66 deletions

View File

@@ -3,6 +3,10 @@
# SPDX-License-Identifier: Apache-2.0
#
if(ENABLE_LTO AND CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.0)
ie_enable_lto()
endif()
# [cmake:functional_tests]
set(TARGET_NAME templateFuncTests)