File Coverage

blib/lib/Alien/OpenMP.pm
Criterion Covered Total %
statement 21 21 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod 3 3 100.0
total 32 32 100.0


line stmt bran cond sub pod time code
1             package Alien::OpenMP;
2              
3 2     2   437474 use strict;
  2         5  
  2         88  
4 2     2   12 use warnings;
  2         5  
  2         158  
5 2     2   16 use parent 'Alien::Base';
  2         5  
  2         17  
6 2     2   75433 use Config ();
  2         8  
  2         45  
7 2     2   1205 use Alien::OpenMP::configure ();
  2         9  
  2         451  
8              
9             our $VERSION = '0.3.8';
10              
11             # "public" Alien::Base method implementations
12              
13             # we can reuse cflags for gcc/gomp; hopefully this will
14             # remain the case for all supported compilers
15 3     3 1 247867 sub lddlflags { shift->libs }
16              
17 1     1 1 2625 sub openmp_version { shift->runtime_prop->{openmp_version} }
18              
19             # Inline related methods
20              
21             sub Inline {
22 2     2 1 9595187 my ($self, $lang) = @_;
23 2         71 my $params = $self->SUPER::Inline($lang);
24 2         1226 $params->{CCFLAGSEX} = delete $params->{INC};
25             return {
26             %$params,
27             LDDLFLAGS => join( q{ }, $Config::Config{lddlflags}, $self->lddlflags() ),
28             AUTO_INCLUDE => $self->runtime_prop->{auto_include},
29 2         170 };
30             }
31              
32             1;
33              
34             __END__