Skip to content

Commit

Permalink
Make code coverage work with clang
Browse files Browse the repository at this point in the history
Do not add -lgcov to linker flags, clang does not need it.

Closes idaholab#5468
  • Loading branch information
andrsd authored and dschwen committed Jul 29, 2015
1 parent eb0f802 commit 751717b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ endif
# compile with gcov support if using the gcc compiler suite
ifeq ($(coverage),true)
libmesh_CXXFLAGS += -fprofile-arcs -ftest-coverage
libmesh_LDFLAGS += -lgcov
ifeq (,$(findstring clang++,$(cxx_compiler)))
libmesh_LDFLAGS += -lgcov
endif
endif

# link with gcov support, but do now generate data for this build
Expand Down

0 comments on commit 751717b

Please sign in to comment.