add ARROW_USE_COVERAGE

This commit is contained in:
Marco Neumann committed 2018-02-02 13:38:48 +01:00
1 parent a1fd79625a
commit 25a9273cb8
1 file changed
+10
+10
View File
@@ -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.