From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [tarantool-patches] Re: [PATCH 1/1] Fix gcov on Mac References: <0b5a8c7bdf150d855e500e1dfa971bf47ec70daf.1545047861.git.v.shpilevoy@tarantool.org> <20181218101108.wt5vd2sxztx7d4pc@esperanza> <20181221095847.pgzzjfmnx2gvum37@tkn_work_nb> From: Vladislav Shpilevoy Message-ID: <50177a66-2b14-ef8f-0d2c-94fb4f901b33@tarantool.org> Date: Fri, 21 Dec 2018 16:39:39 +0300 MIME-Version: 1.0 In-Reply-To: <20181221095847.pgzzjfmnx2gvum37@tkn_work_nb> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit To: tarantool-patches@freelists.org, Alexander Turenko Cc: Vladimir Davydov List-ID: New version here and on the branch: commit f5ebb59e481ee5fbf991330d6625638ccd42de70 Author: Vladislav Shpilevoy Date: Fri Dec 21 16:38:32 2018 +0300 Fix gcov on Mac diff --git a/cmake/profile.cmake b/cmake/profile.cmake index 278399155..ca80bd9c5 100644 --- a/cmake/profile.cmake +++ b/cmake/profile.cmake @@ -1,4 +1,6 @@ -check_library_exists (gcov __gcov_flush "" HAVE_GCOV) +set(CMAKE_REQUIRED_FLAGS "-fprofile-arcs -ftest-coverage") +check_library_exists("" __gcov_flush "" HAVE_GCOV) +set(CMAKE_REQUIRED_FLAGS "") set(ENABLE_GCOV_DEFAULT OFF) option(ENABLE_GCOV "Enable integration with gcov, a code coverage program" ${ENABLE_GCOV_DEFAULT})