[tarantool-patches] Re: [PATCH 1/1] Fix gcov on Mac
Alexander Turenko
alexander.turenko at tarantool.org
Fri Dec 21 16:46:57 MSK 2018
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 <v.shpilevoy at tarantool.org>
> 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})
More information about the Tarantool-patches
mailing list