Skip to content

Commit bf7ecdc

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents b769b4a + 77afcfc commit bf7ecdc

File tree

7 files changed

+379
-152
lines changed

7 files changed

+379
-152
lines changed

envcov.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
scripts="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
66
source "${scripts}/env.sh"
77

8-
LCOV_PATH="${scripts}/lcov-1.11/bin"
8+
LCOV_PATH="${scripts}/lcov-1.12/bin"
99
OBJ_DIR="${OBJECT_FILE_DIR_normal}/${CURRENT_ARCH}"
1010

1111
# Fix for the new LLVM-COV that requires gcov to have a -v parameter
File renamed without changes.

lcov-1.11/bin/gendesc renamed to lcov-1.12/bin/gendesc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@
3838
use strict;
3939
use File::Basename;
4040
use Getopt::Long;
41+
use Cwd qw/abs_path/;
4142

4243

4344
# Constants
44-
our $lcov_version = 'LCOV version 1.11';
45+
our $tool_dir = abs_path(dirname($0));
46+
our $lcov_version = 'LCOV version '.`$tool_dir/get_version.sh --full`;
4547
our $lcov_url = "http://ltp.sourceforge.net/coverage/lcov.php";
4648
our $tool_name = basename($0);
4749

@@ -67,9 +69,6 @@ our $input_filename;
6769
$SIG{__WARN__} = \&warn_handler;
6870
$SIG{__DIE__} = \&die_handler;
6971

70-
# Prettify version string
71-
$lcov_version =~ s/\$\s*Revision\s*:?\s*(\S+)\s*\$/$1/;
72-
7372
# Parse command line options
7473
if (!GetOptions("output-filename=s" => \$output_filename,
7574
"version" =>\$version,

0 commit comments

Comments
 (0)