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