| 1 | package builder::MyBuilder; | ||||||||||||
| 2 | |||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 1 | ▶ | use parent qw(Module::Build); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 1 | ▶ | use Devel::CheckCompiler 0.04; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | 0 | ▶ | sub new { | ||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||
| 9 | 0 | my $self = shift; | |||||||||||
| 10 | 0 | my %args = @_; | |||||||||||
| 11 | 0 | ▶ | if ( $^O eq 'solaris') { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 12 | 0 | print "This module does not support Solaris.\n"; | |||||||||||
| 13 | 0 | exit 0; | |||||||||||
| 14 | } | ||||||||||||
| 15 | |||||||||||||
| 16 | 0 | ▶ | if (check_compile(<<'...', executable => 1)) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 17 | #ifndef _GNU_SOURCE | ||||||||||||
| 18 | #define _GNU_SOURCE | ||||||||||||
| 19 | #endif | ||||||||||||
| 20 | #include <sys/socket.h> | ||||||||||||
| 21 | |||||||||||||
| 22 | int main(void) | ||||||||||||
| 23 | { | ||||||||||||
| 24 | return accept4(0, (void*)0, (void*)0, SOCK_CLOEXEC|SOCK_NONBLOCK); | ||||||||||||
| 25 | } | ||||||||||||
| 26 | ... | ||||||||||||
| 27 | 0 | ▶ | $args{extra_compiler_flags} ||= []; | ||||||||||
|
Condition0%0/2
$args{"extra_compiler_flags"} ||= []
MC/DC0%0/1
$args{"extra_compiler_flags"} ||= []
$args{"extra_compiler_flags"}
Truth table0%0/2
A
A= $args{"extra_compiler_flags"}
| |||||||||||||
| 28 | 0 | push @{$args{extra_compiler_flags}}, '-DHAVE_ACCEPT4'; | |||||||||||
| 29 | } | ||||||||||||
| 30 | 0 | $self->SUPER::new(%args); | |||||||||||
| 31 | } | ||||||||||||
| 32 | |||||||||||||
| 33 | |||||||||||||
| 34 | 1 | 1; | |||||||||||