mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
add ARROW_USE_COVERAGE
This commit is contained in:
1 parent
a1fd79625a
commit
25a9273cb8
1 file changed
+10
@@ -87,6 +87,16 @@ if (${ARROW_USE_TSAN})
|
||||
endif()
|
||||
|
||||
|
||||
if (${ARROW_USE_COVERAGE})
|
||||
if(NOT ("${COMPILER_FAMILY}" STREQUAL "clang"))
|
||||
message(SEND_ERROR "You can only enable coverage with clang")
|
||||
endif()
|
||||
add_definitions("-fsanitize-coverage=trace-pc-guard")
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize-coverage=trace-pc-guard")
|
||||
endif()
|
||||
|
||||
|
||||
if ("${ARROW_USE_UBSAN}" OR "${ARROW_USE_ASAN}" OR "${ARROW_USE_TSAN}")
|
||||
# GCC 4.8 and 4.9 (latest as of this writing) don't allow you to specify a
|
||||
# sanitizer blacklist.
|
||||
|
||||
Reference in new issue
Block a user