From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 21 Dec 2018 16:46:57 +0300 From: Alexander Turenko Subject: Re: [tarantool-patches] Re: [PATCH 1/1] Fix gcov on Mac Message-ID: <20181221134657.7f2cgovq75pg43r5@tkn_work_nb> References: <0b5a8c7bdf150d855e500e1dfa971bf47ec70daf.1545047861.git.v.shpilevoy@tarantool.org> <20181218101108.wt5vd2sxztx7d4pc@esperanza> <20181221095847.pgzzjfmnx2gvum37@tkn_work_nb> <50177a66-2b14-ef8f-0d2c-94fb4f901b33@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <50177a66-2b14-ef8f-0d2c-94fb4f901b33@tarantool.org> To: Vladislav Shpilevoy Cc: tarantool-patches@freelists.org, Vladimir Davydov List-ID: I'm OK. WBR, Alexander Turenko. On Fri, Dec 21, 2018 at 04:39:39PM +0300, Vladislav Shpilevoy wrote: > 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})