Chromium Code Reviews| Index: tools/gcov_shim |
| diff --git a/tools/gcov_shim b/tools/gcov_shim |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..f6fb7d287610419538d315c681b0de0a34c5f8f9 |
| --- /dev/null |
| +++ b/tools/gcov_shim |
| @@ -0,0 +1,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 |
|
borenet
2013/09/12 17:22:58
I'd prefer $1 be in quotes even though it isn't st
mtklein
2013/09/12 17:34:00
Done.
|
| + CMD="$CMD $1" |
| + fi |
| + shift |
| +done |
| + |
| +$CMD |