Skip to content

Commit

Permalink
Disable JS for on all Linux platforms with gcc < 7 (openvinotoolkit#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov authored Dec 20, 2023
1 parent 3a6a625 commit f6cd215
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bindings/js/node/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ if(CMAKE_VERSION VERSION_LESS 3.14)
return()
endif()

if(CMAKE_COMPILER_IS_GNUCXX AND LINUX AND AARCH64 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
message(WARNING "JS API is not support compiler version less than 7, skipping")
if(CMAKE_COMPILER_IS_GNUCXX AND LINUX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
message(WARNING "JS API is not support gcc compiler version less than 7, skipping")
return()
endif()

Expand Down
4 changes: 2 additions & 2 deletions thirdparty/onnx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ if(WIN32)
endif()
endif()

#WA to support old compiler version, removes unused header which may block build
if(CMAKE_COMPILER_IS_GNUCXX AND LINUX AND AARCH64 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
# WA to support old compiler version, removes unused header which may block build
if(CMAKE_COMPILER_IS_GNUCXX AND LINUX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
file(READ onnx/onnx/defs/parser.cc CONTENT)
string(REPLACE "#include <string_view>" "" CONTENT "${CONTENT}")
file(WRITE onnx/onnx/defs/parser.cc "${CONTENT}")
Expand Down

0 comments on commit f6cd215

Please sign in to comment.