Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
[gcov] add and to default commands
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepeak committed Oct 19, 2015
1 parent 66f36f7 commit 72c885f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions codecov
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ else
if [ -d ~/Library/Developer/Xcode/DerivedData ];
then
say " Found gcda in ~/Library/Developer/Xcode/DerivedData"
find ~/Library/Developer/Xcode/DerivedData -name '*.gcda' -exec $gcov_exe $gcov_arg {} +
find ~/Library/Developer/Xcode/DerivedData -name '*.gcda' -exec gcov -pbcu -o $(find ~/Library/Developer/Xcode/DerivedData -type f -name '*.gcno' -exec dirname {} \;) {} +

profdata=$(find ~/Library/Developer/Xcode/DerivedData -name 'Coverage.profdata' | head -1)
if [ -f "$profdata" ];
Expand All @@ -457,10 +457,10 @@ else
fi
fi

say " Searching for gcov via (find $proj_root -type f -name '*.gcno' $gcov_ignore -exec $gcov_exe $gcov_arg {} +)"
say " Searching for gcov"

# all other gcov
bash -c "find $proj_root -type f -name '*.gcno' $gcov_ignore -exec $gcov_exe $gcov_arg {} +" || true
bash -c "find $proj_root -type f -name '*.gcno' $gcov_ignore -exec gcov -pbcu -o $(find $proj_root -type f -name '*.gcno' -exec dirname {} \;) {} +" || true

else
say '**> gcov disable'
Expand Down

0 comments on commit 72c885f

Please sign in to comment.