| 1 | package ExtUtils::Builder::Linker::ELF::Any; | ||||||||||||||||||||||||||||||||
| 2 | 3 | $ExtUtils::Builder::Linker::ELF::Any::VERSION = '0.038'; | |||||||||||||||||||||||||||||||
| 3 | 3 | ▶ | use strict; | ||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||
| 4 | 3 | ▶ | use warnings; | ||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||
| 6 | 3 | ▶ | use parent 'ExtUtils::Builder::Linker::Unixy'; | ||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||
| 8 | 5 | ▶ | sub _init { | ||||||||||||||||||||||||||||||
|
Subroutine
_init: called CC=6 SCAR=18.7
| |||||||||||||||||||||||||||||||||
| 9 | 5 | my ($self, %args) = @_; | |||||||||||||||||||||||||||||||
| 10 | 5 | ▶ | $args{ld} //= ['cc']; | ||||||||||||||||||||||||||||||
|
Condition50%1/2
$args{"ld"} //= ["cc"]
MC/DC0%0/1
$args{"ld"} //= ["cc"]
$args{"ld"}
Truth table50%1/2
A
A= $args{"ld"}
| |||||||||||||||||||||||||||||||||
| 11 | 5 | ▶ | $args{export} //= $args{type} eq 'executable' ? 'none' : 'all'; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition50%1/2
$args{"export"} //= $args{"type"} eq "executable" ? "none" : "all"
MC/DC0%0/1
$args{"export"} //= $args{"type"} eq "executable" ? "none" : "all"
$args{"export"}
Truth table50%1/2
A
A= $args{"export"}
| |||||||||||||||||||||||||||||||||
| 12 | 5 | $self->SUPER::_init(%args); | |||||||||||||||||||||||||||||||
| 13 | 5 | ▶ | $self->{ccdlflags} = defined $args{ccdlflags} ? $args{ccdlflags} : Carp::croak(''); | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 14 | 5 | ▶ | $self->{lddlflags} = defined $args{lddlflags} ? $args{lddlflags} : Carp::croak(''); | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 15 | 5 | return; | |||||||||||||||||||||||||||||||
| 16 | } | ||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||
| 18 | 5 | ▶ | sub linker_flags { | ||||||||||||||||||||||||||||||
|
Subroutine
linker_flags: called CC=5 SCAR=16.4
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 19 | 5 | my ($self, $from, $to, %args) = @_; | |||||||||||||||||||||||||||||||
| 20 | 5 | my @ret = $self->SUPER::linker_flags($from, $to, %args); | |||||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||||||
| 22 | 5 | my $type = $self->type; | |||||||||||||||||||||||||||||||
| 23 | 5 | ▶ | if ($type eq 'shared-library' or $type eq 'loadable-object') { | ||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition100%3/3
$type eq "shared-library" or $type eq "loadable-object"
MC/DC100%2/2
$type eq "shared-library" or $type eq "loadable-object"
$type eq "shared-library"
$type eq "loadable-object"
Truth table100%3/3
A or B
A= $type eq "shared-library"B= $type eq "loadable-object"
| |||||||||||||||||||||||||||||||||
| 24 | 3 | push @ret, $self->new_argument(ranking => 10, value => $self->{lddlflags}); | |||||||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||||||
| 26 | elsif ($type eq 'executable') { | ||||||||||||||||||||||||||||||||
| 27 | 2 | ▶ | push @ret, $self->new_argument(ranking => 10, value => $self->{ccdlflags}) if $self->export eq 'all'; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 28 | } | ||||||||||||||||||||||||||||||||
| 29 | else { | ||||||||||||||||||||||||||||||||
| 30 | 0 | croak("Unknown linkage type $type"); | |||||||||||||||||||||||||||||||
| 31 | } | ||||||||||||||||||||||||||||||||
| 32 | 5 | return @ret; | |||||||||||||||||||||||||||||||
| 33 | } | ||||||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||||||
| 35 | 3 | 1; | |||||||||||||||||||||||||||||||