From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 21 Dec 2018 18:33:24 +0300 From: Vladimir Davydov Subject: Re: [tarantool-patches] Re: [PATCH 1/1] Fix gcov on Mac Message-ID: <20181221153324.umtdtqstff2uedge@esperanza> 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=us-ascii Content-Disposition: inline In-Reply-To: <50177a66-2b14-ef8f-0d2c-94fb4f901b33@tarantool.org> To: Vladislav Shpilevoy Cc: tarantool-patches@freelists.org, Alexander Turenko List-ID: 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}) Pushed to 2.1 and 1.10.