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

This commit is contained in:
Ilya Lavrenov authored and GitHub committed 2023-12-20 11:39:46 +04:00
1 parent 3a6a62558a
commit f6cd2150c2
2 files changed
+4 -4

No files matched your search

+2 -2
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()
+2 -2
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}")