Skip to content

Commit

Permalink
Fix "--enable-code-coverage" debug build
Browse files Browse the repository at this point in the history
When --enable-code-coverage is provided it should not result
in NDEBUG being defined.  This is controlled by --enable-debug.

Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#6674
  • Loading branch information
behlendorf authored and tonyhutter committed Mar 13, 2018
1 parent f073acb commit d038e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/ax_code_coverage.m4
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ AC_DEFUN([AX_CODE_COVERAGE],[
dnl Build the code coverage flags
dnl Define CODE_COVERAGE_LDFLAGS for backwards compatibility
CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
CODE_COVERAGE_CPPFLAGS=""
CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
CODE_COVERAGE_LIBS="-lgcov"
Expand Down

0 comments on commit d038e45

Please sign in to comment.