Disable JS for on all Linux platforms with gcc < 7 (#21777)

This commit is contained in:
Ilya Lavrenov 2023-12-20 11:39:46 +04:00 committed by GitHub
parent 3a6a62558a
commit f6cd2150c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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}")