Fixed Android x86_64 build (#23679)
### Details: - JS is not available on Android ### Tickets: - Closes https://github.com/openvinotoolkit/openvino/issues/23494
This commit is contained in:
parent
5980af1b18
commit
fc5da9d935
|
|
@ -177,7 +177,7 @@ ov_dependent_option (ENABLE_SYSTEM_SNAPPY "Enables use of system version of Snap
|
|||
ov_dependent_option (ENABLE_PYTHON_PACKAGING "Enables packaging of Python API in APT / YUM" OFF
|
||||
"ENABLE_PYTHON;UNIX" OFF)
|
||||
|
||||
ov_option(ENABLE_JS "Enables JS API building" ON)
|
||||
ov_dependent_option(ENABLE_JS "Enables JS API building" ON "NOT ANDROID" OFF)
|
||||
|
||||
ov_option(ENABLE_OPENVINO_DEBUG "Enable output for OPENVINO_DEBUG statements" OFF)
|
||||
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
|||
# oneDNN arm64: unary minus operator applied to unsigned type, result still unsigned
|
||||
ov_add_compiler_flags(/wd4146)
|
||||
elseif(OV_COMPILER_IS_CLANG)
|
||||
# -Wno-delete-non-abstract-non-virtual-dtor is support > clang8.0
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8)
|
||||
# -Wno-delete-non-abstract-non-virtual-dtor is support > clang 9.0
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 9.0)
|
||||
ov_add_compiler_flags(-Wno-delete-non-abstract-non-virtual-dtor)
|
||||
else()
|
||||
ov_add_compiler_flags(-Wno-delete-non-virtual-dtor)
|
||||
|
|
|
|||
|
|
@ -17,7 +17,12 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||
endif()
|
||||
|
||||
if(OV_COMPILER_IS_CLANG)
|
||||
ov_add_compiler_flags(-Wno-delete-non-abstract-non-virtual-dtor)
|
||||
# -Wno-delete-non-abstract-non-virtual-dtor is support > clang 9.0
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 9.0)
|
||||
ov_add_compiler_flags(-Wno-delete-non-abstract-non-virtual-dtor)
|
||||
else()
|
||||
ov_add_compiler_flags(-Wno-delete-non-virtual-dtor)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
|
|
|
|||
Loading…
Reference in New Issue