File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -637,7 +637,6 @@ if(WITH_BABELTRACE)
637637endif (WITH_BABELTRACE)
638638
639639option (DEBUG_GATHER "C_Gather debugging is enabled" ON )
640- option (ENABLE_COVERAGE "Coverage is enabled" OFF )
641640option (PG_DEBUG_REFS "PG Ref debugging is enabled" OFF )
642641
643642option (WITH_TESTS "enable the build of ceph-test package scripts/binaries" ON )
Original file line number Diff line number Diff line change @@ -263,15 +263,18 @@ if(LINUX OR APPLE)
263263 list (APPEND EXTRALIBS ${LIB_RESOLV} )
264264endif ()
265265
266+ option (ENABLE_COVERAGE "Coverage is enabled" OFF )
266267if (${ENABLE_COVERAGE} )
267268 find_program (HAVE_GCOV gcov)
268269 if (NOT HAVE_GCOV)
269270 message (FATAL_ERROR "Coverage Enabled but gcov Not Found" )
270271 endif ()
271272 add_compile_options (
272- -fprofile-arcs
273- -ftest-coverage
273+ --coverage
274274 -O0)
275+ add_link_options (
276+ --coverage
277+ )
275278 list (APPEND EXTRALIBS gcov)
276279endif (${ENABLE_COVERAGE} )
277280
You can’t perform that action at this time.
0 commit comments