diff options
Diffstat (limited to 'testing/tools/coverage/llvm-gcov')
-rwxr-xr-x | testing/tools/coverage/llvm-gcov | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/tools/coverage/llvm-gcov b/testing/tools/coverage/llvm-gcov new file mode 100755 index 0000000000..8141e7ef27 --- /dev/null +++ b/testing/tools/coverage/llvm-gcov @@ -0,0 +1,15 @@ +#!/bin/bash +# Copyright 2017 The PDFium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# Wrapper script to make llvm-cov behave like gcov, so it can be passed in as the --gcov-tool +# parameter when using lcov. Specifically adds the keyword 'gcov' to the arguments being passed in, +# to tell llvm-cov to operate in gcov compatibility mode. +# +# LLVM_COV_BIN needs to be set by caller and should the path to +# a llvm-cov binary with a version of 3.5 or greater. + +set -e + +exec ${LLVM_COV_BIN} gcov $* |