File Coverage

blib/lib/Alien/OpenMP.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 2 2 100.0
total 21 21 100.0


line stmt bran cond sub pod time code
1             package Alien::OpenMP;
2              
3 2     2   284225 use parent 'Alien::Base';
  2         287  
  2         13  
4 2     2   48244 use Config ();
  2         5  
  2         28  
5 2     2   1010 use Alien::OpenMP::configure ();
  2         5  
  2         259  
6              
7             our $VERSION = '0.003006';
8              
9             # "public" Alien::Base method implementations
10              
11             # we can reuse cflags for gcc/gomp; hopefully this will
12             # remain the case for all supported compilers
13 3     3 1 6581 sub lddlflags { shift->libs }
14              
15             # Inline related methods
16              
17             sub Inline {
18 2     2 1 1172399 my ($self, $lang) = @_;
19 2         72 my $params = $self->SUPER::Inline($lang);
20 2         1016 $params->{CCFLAGSEX} = delete $params->{INC};
21             return {
22             %$params,
23             LDDLFLAGS => join( q{ }, $Config::Config{lddlflags}, $self->lddlflags() ),
24             AUTO_INCLUDE => $self->runtime_prop->{auto_include},
25 2         161 };
26             }
27              
28             1;
29              
30             __END__