Skip to content

Commit

Permalink
Fixed Android x86_64 build (openvinotoolkit#23679)
Browse files Browse the repository at this point in the history
### Details:
 - JS is not available on Android

### Tickets:
 - Closes openvinotoolkit#23494
  • Loading branch information
ilya-lavrenov authored Mar 27, 2024
1 parent 5980af1 commit fc5da9d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions src/plugins/intel_cpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 6 additions & 1 deletion src/plugins/intel_gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fc5da9d

Please sign in to comment.