Skip to content

Commit d97b0ee

Browse files
committed
Bugfox: do not push --base-directory onto source-dir list multiple times
(issue #254) Signed-off-by: Henry Cox <henry.cox@mediatek.com>
1 parent 0801aa8 commit d97b0ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/lcov

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,11 @@ sub lcov_geninfo(@)
861861
push(@param, "--build-directory", $b);
862862
}
863863
foreach my $s (@ReadCurrentSource::source_directories) {
864-
push(@param, "--source-directory", $s);
864+
# a bit of a hack: we pushed the --base-directory argument onto
865+
# the source list - and we need to make sure that we only pass
866+
# it to geninfo once.
867+
push(@param, "--source-directory", $s)
868+
unless (defined($base_directory) && $s eq $base_directory);
865869
}
866870
if ($no_compat_libtool) {
867871
push(@param, "--no-compat-libtool");

0 commit comments

Comments
 (0)