mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Merge pull request #1973 from hitstergtd/x-fix-m4-llvm-gcov-coverage
Problem: Coverage option broken with LLVM GCOV Frontend
This commit is contained in:
commit
a4a247cf57
@ -143,7 +143,14 @@ AC_DEFUN([AX_CODE_COVERAGE],[
|
||||
CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
|
||||
CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
|
||||
CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
|
||||
CODE_COVERAGE_LDFLAGS="-lgcov"
|
||||
|
||||
dnl Libgcov is not required for the LLVM GCOV frontend
|
||||
case "`$GCOV -version`" in
|
||||
*LLVM*)
|
||||
CODE_COVERAGE_LDFLAGS="";;
|
||||
*)
|
||||
CODE_COVERAGE_LDFLAGS="-lgcov";;
|
||||
esac
|
||||
|
||||
AC_SUBST([CODE_COVERAGE_CPPFLAGS])
|
||||
AC_SUBST([CODE_COVERAGE_CFLAGS])
|
||||
|
Loading…
x
Reference in New Issue
Block a user