From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Vladislav Shpilevoy Subject: [PATCH v3 1/3] Allow gcov on Mac Date: Tue, 10 Apr 2018 11:31:44 +0300 Message-Id: <8e2a74bb3e83159c0e300638a5b7891b05edacc3.1523349020.git.v.shpilevoy@tarantool.org> In-Reply-To: References: In-Reply-To: References: To: tarantool-patches@freelists.org Cc: vdavydov.dev@gmail.com, kshcherbatov@tarantool.org List-ID: For this it is enough to remove HAVE_GCOV. It checks for gcov library existance, but the library is unused anyway. Enabled gcov can be run locally on Mac now. --- cmake/profile.cmake | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cmake/profile.cmake b/cmake/profile.cmake index 278399155..c82fc0168 100644 --- a/cmake/profile.cmake +++ b/cmake/profile.cmake @@ -1,14 +1,7 @@ -check_library_exists (gcov __gcov_flush "" HAVE_GCOV) - set(ENABLE_GCOV_DEFAULT OFF) option(ENABLE_GCOV "Enable integration with gcov, a code coverage program" ${ENABLE_GCOV_DEFAULT}) if (ENABLE_GCOV) - if (NOT HAVE_GCOV) - message (FATAL_ERROR - "ENABLE_GCOV option requested but gcov library is not found") - endif() - add_compile_flags("C;CXX" "-fprofile-arcs" "-ftest-coverage" @@ -18,8 +11,6 @@ if (ENABLE_GCOV) set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -ftest-coverage") set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fprofile-arcs") set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -ftest-coverage") - - # add_library(gcov SHARED IMPORTED) endif() if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") -- 2.14.3 (Apple Git-98)