| 1 | package builder::MyBuilder; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use 5.010_001; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use parent qw(Module::Build); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use Devel::CheckCompiler 0.04; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | sub new { | ||||||||||
| 10 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
new: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 11 | 0 | ▶ | if ($^O ne 'linux') { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 0 | print "This module only supports linux.\n"; | |||||||||
| 13 | 0 | exit 0; | |||||||||
| 14 | } | ||||||||||
| 15 | 0 | ▶ | if (check_compile(<<'...', executable => 1) != 1) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | #ifndef _GNU_SOURCE | ||||||||||
| 17 | #define _GNU_SOURCE | ||||||||||
| 18 | #endif | ||||||||||
| 19 | #include <sys/socket.h> | ||||||||||
| 20 | |||||||||||
| 21 | int main(void) | ||||||||||
| 22 | { | ||||||||||
| 23 | return accept4(0, (void*)0, (void*)0, 0); | ||||||||||
| 24 | } | ||||||||||
| 25 | ... | ||||||||||
| 26 | 0 | print "This module only supports linux 2.6.28+ and glibc 2.10+.\n"; | |||||||||
| 27 | 0 | exit 0; | |||||||||
| 28 | } | ||||||||||
| 29 | 0 | $self->SUPER::new(@_); | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | |||||||||||
| 33 | 1 | 1; | |||||||||
| 34 | |||||||||||