• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2# Copyright 2017 The PDFium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6# Wrapper script to make llvm-cov behave like gcov, so it can be passed in as the --gcov-tool
7# parameter when using lcov. Specifically adds the keyword 'gcov' to the arguments being passed in,
8# to tell llvm-cov to operate in gcov compatibility mode.
9#
10# LLVM_COV_BIN needs to be set by caller and should the path to
11# a llvm-cov binary with a version of 3.5 or greater.
12
13set -e
14
15exec ${LLVM_COV_BIN} gcov $*
16