mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-21 14:32:23 +02:00
CI: don't build fuzzers with Clang 11
Clang 11 fails on GitHub Actions with the following error: ERROR: UndefinedBehaviorSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22) Sanitizer CHECK failed: /build/llvm-toolchain-11-mnvtwk/llvm-toolchain-11-11.1.0/compiler-rt/lib/sanitizer_common/sanitizer_common.cpp:54 ((0 && "unable to mmap")) != (0) (0, 0)
This commit is contained in:
@ -52,7 +52,16 @@ macro(add_fuzzer name)
|
|||||||
)
|
)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6)
|
# Needs Clang 6+ to compile
|
||||||
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 6)
|
||||||
|
if(DEFINED ENV{GITHUB_ACTIONS} AND CMAKE_CXX_COMPILER_VERSION MATCHES "^11\\.")
|
||||||
|
# Clang 11 fails on GitHub Actions with the following error:
|
||||||
|
# > ERROR: UndefinedBehaviorSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22)
|
||||||
|
# > Sanitizer CHECK failed: /build/llvm-toolchain-11-mnvtwk/llvm-toolchain-11-11.1.0/compiler-rt/lib/sanitizer_common/sanitizer_common.cpp:54 ((0 && "unable to mmap")) != (0) (0, 0)
|
||||||
|
message(WARNING "Fuzzing is disabled on GitHub Actions to workaround a bug in Clang 11")
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
add_fuzzer(json)
|
add_fuzzer(json)
|
||||||
add_fuzzer(msgpack)
|
add_fuzzer(msgpack)
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user