Disable JS for on all Linux platforms with gcc < 7 (#21777)
This commit is contained in:
1 parent
3a6a62558a
commit
f6cd2150c2
2 files changed
+4
-4
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -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}")
|
||||
|
||||
Reference in new issue
Block a user