alienfile

filter: Statementstmt 50.0% 17 / 34 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod n/a totaltotal 52.1% 24 / 46 CC 3 SCAR 8.9
CC
3
Cov
50%
__ANON__
4.9
__ANON__
2.0
__ANON__
2.0
CRAP 2.4
« lib/Alien/OpenMP/configure.pm ↑ Summary blib/lib/Alien/OpenMP/Install/Files.pm »
1 # -*- mode: perl -*-
2 1 ▶use alienfile 1.68;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use lib q{lib};
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Alien::OpenMP::configure;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶configure {
Subroutine __ANON__: called CC=3 SCAR=16.0
7 1 ▶ if ($^O eq 'darwin') {
Branch: 1 branch
BranchTrueFalseTotal
if ($^O eq "darwin") 0 1 1
8 0 requires 'File::Which' => '1.27';
9 0 requires 'Path::Tiny' => '0.053';
10 }
11 1 ▶ unless (Alien::OpenMP::configure->is_known) {
Branch: 1 branch
BranchTrueFalseTotal
unless ("Alien::OpenMP::configure"->is_known) 0 1 1
12 0 Alien::OpenMP::configure->unsupported(__PACKAGE__);
13 0 die "Unsupported platform/compiler combination (no known OpenMP configuration)";
14 }
15 1 };
16  
17 0 ▶meta->interpolator->replace_helper(cc => sub { $Alien::OpenMP::configure::CCNAME });
Subroutine __ANON__: not called CC=1 SCAR=1.2
18  
19 1 plugin 'Probe::CBuilder' => (
20 lang => 'C',
21 cflags => Alien::OpenMP::configure->cflags,
22 libs => Alien::OpenMP::configure->libs,
23 options => { quiet => 0 },
24 program => join("\n" => <DATA>),
25 );
26  
27 0 ▶after probe => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
28 0 my $build = shift;
29 0 $build->install_prop->{alien_openmp_compiler_has_openmp} = 1;
30 0 $build->runtime_prop->{auto_include} = Alien::OpenMP::configure->auto_include;
31 0 $build->runtime_prop->{version} = $Alien::OpenMP::VERSION;
32  
33 # Reuse the same shell-free preprocessor capture used for compiler-family
34 # detection. This avoids shell redirection and stdin-pipe behavior on
35 # Windows while retaining the enabled OpenMP flags for _OPENMP detection.
36 0 my $defines = Alien::OpenMP::configure->_openmp_defines;
37 0 my @props = qw{openmp_version version};
38 0 my $runtime = Alien::OpenMP::configure->version_from_preprocessor($defines);
39 0 @{$build->runtime_prop}{@props} = @$runtime{@props};
40 1 };
41  
42 1 ▶share {
Subroutine __ANON__: called CC=1 SCAR=3.5
43 0 ▶ before download => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
44 0 my $build = shift;
45 0 Alien::OpenMP::configure->unsupported($build);
46 0 die "Unsupported platform/compiler combination; OpenMP will not be built";
47 1 };
48 1 };
49  
50 __DATA__
« lib/Alien/OpenMP/configure.pm ↑ Summary blib/lib/Alien/OpenMP/Install/Files.pm »