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