gcov_shim 329 B

123456789101112131415
  1. #!/bin/bash
  2. # Running gcov with -a (--all-blocks) will hang on some files. lcov uses -a.
  3. # This shim strips out that flag (a minor feature) so we can run gcov.
  4. CMD="gcov"
  5. while (( "$#" )); do
  6. if [[ "$1" != "-a" && "$1" != "-all-blocks" && "$1" != "--all-blocks" ]]; then
  7. CMD="$CMD $1"
  8. fi
  9. shift
  10. done
  11. $CMD