Alien-OpenMP
view release on metacpan or search on metacpan
lib/Alien/OpenMP.pm view on Meta::CPAN
package Alien::OpenMP;
use parent 'Alien::Base';
use Config ();
use Alien::OpenMP::configure ();
our $VERSION = '0.003006';
# "public" Alien::Base method implementations
# we can reuse cflags for gcc/gomp; hopefully this will
# remain the case for all supported compilers
sub lddlflags { shift->libs }
# Inline related methods
sub Inline {
my ($self, $lang) = @_;
my $params = $self->SUPER::Inline($lang);
t/01-basic.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use Test::Alien;
use Alien::OpenMP;
subtest 'syntax and interface' => sub {
alien_ok 'Alien::OpenMP', 'public interface check for Alien::Base';
is +Alien::OpenMP->install_type, 'system', 'no share install is possible';
};
subtest 'has options' => sub {
like +Alien::OpenMP->cflags, qr{-fopenmp}, q{Found expected OpenMP compiler switch for gcc/clang.};
like +Alien::OpenMP->lddlflags, qr{(?:-lomp|-fopenmp)}, q{Found expected OpenMP linker switch for gcc/clang.};
};
done_testing;
( run in 0.323 second using v1.01-cache-2.11-cpan-64827b87656 )