blob: 8141e7ef270ecc88890b234195541ffb5211752f [file] [log] [blame]
#!/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 $*