Skip to content

Commit

Permalink
don't use gcc-specific profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Sep 2, 2015
1 parent 73d9aa8 commit eea8f85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
7 changes: 0 additions & 7 deletions src/src.pro
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,3 @@ equals(QXMPP_LIBRARY_TYPE,staticlib) {
QMAKE_PKGCONFIG_CFLAGS = -DQXMPP_SHARED
}
unix:QMAKE_CLEAN += -r pkgconfig lib$${TARGET}.prl

# profiling support
equals(QXMPP_PROFILE,true) {
QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage
QMAKE_LIBS += -lgcov
QMAKE_CLEAN += *.gcda *.gcov *.gcno
}
14 changes: 1 addition & 13 deletions tests/travis/build-and-test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
set -e

QMAKE_ARGS="QXMPP_PROFILE=true"
QMAKE_ARGS=""

if [ -n "$CC" ]; then
QMAKE_ARGS="$QMAKE_ARGS QMAKE_CC=$CC"
Expand Down Expand Up @@ -36,15 +36,3 @@ make VERBOSE=1

# run tests
make check
exit 0

# generate coverage report
TRACEFILE=coverage.info
rm -f $TRACEFILE
lcov --capture --directory src -o $TRACEFILE --no-external
lcov --remove $TRACEFILE \*moc_\* -o $TRACEFILE.clean
mv $TRACEFILE.clean $TRACEFILE

rm -rf coverage
genhtml -o coverage $TRACEFILE
echo "ok"

0 comments on commit eea8f85

Please sign in to comment.