lib/FFI/Build/Platform.pm

filter: Statementstmt 81.9% 168 / 205 Branchbran 52.5% 42 / 80 Conditioncond 42.1% 16 / 38 MC/DCmcdc 4.1% 1 / 24 Subroutinesub 97.3% 37 / 38 Podpod 100% 23 / 23 totaltotal 70.3% 287 / 408 CC 57 SCAR 19.8
CC
57
Cov
70%
cxx
29.1
ldflags
11.9
for
9.8
CRAP 7.2
« lib/FFI/Probe.pm ↑ Summary lib/FFI/Platypus/ShareConfig.pm »
1 package FFI::Build::Platform;
2  
3 16 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 16 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 16 ▶use 5.008004;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 16 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7 16 ▶use Text::ParseWords ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8 16 ▶use FFI::Temp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 16 ▶use Capture::Tiny ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10 16 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 16 ▶use FFI::Platypus::ShareConfig;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 # ABSTRACT: Platform specific configuration.
14 16 our $VERSION = '2.11'; # VERSION
15  
16  
17 sub new
18 {
19 41 ▶ my($class, $config) = @_;
Subroutine new: called CC=2 SCAR=7.0
Pod documented
20 41 ▶ $config ||= do {
Condition66%2/3
$config ||= do { require Config; \%Config::Config }
l!l&&r!l&&!r
2390
MC/DC0%0/2
$config ||= do { require Config; \%Config::Config }
$config do { require Config; \%Config::Config }
Truth table66%2/3
A ||= B
A= $configB= do { require Config; \%Config::Config }
ABresult
1X1
011
000
21 39 require Config;
22 39 \%Config::Config;
23 };
24 41 my $self = bless {
25 config => $config,
26 }, $class;
27 41 $self;
28 }
29  
30  
31 16 my $default;
32 sub default
33 {
34 44 ▶ $default ||= FFI::Build::Platform->new;
Subroutine default: called CC=2 SCAR=7.2
Pod documented
Condition66%2/3
$default ||= "FFI::Build::Platform"->new
l!l&&r!l&&!r
33110
MC/DC0%0/2
$default ||= "FFI::Build::Platform"->new
$default "FFI::Build::Platform"->new
Truth table66%2/3
A ||= B
A= $defaultB= "FFI::Build::Platform"->new
ABresult
1X1
011
000
35 }
36  
37 sub _self
38 {
39 1783 ▶ my($self) = @_;
Subroutine _self: called CC=2 SCAR=6.9
40 1783 ▶ ref $self ? $self : $self->default;
Branch: 1 branch
BranchTrueFalseTotal
ref $self ? : 1776 7 1783
41 }
42  
43  
44 sub osname
45 {
46 976 ▶ _self(shift)->{config}->{osname};
Subroutine osname: called CC=1 SCAR=0.0
Pod documented
47 }
48  
49  
50 sub object_suffix
51 {
52 65 ▶ _self(shift)->{config}->{obj_ext};
Subroutine object_suffix: called CC=1 SCAR=0.0
Pod documented
53 }
54  
55  
56 sub library_suffix
57 {
58 43 ▶ my $self = _self(shift);
Subroutine library_suffix: called CC=4 SCAR=14.8
Pod documented
59 43 my $osname = $self->osname;
60 43 my @suffix;
61 43 ▶ if($osname eq 'darwin')
Branch: 2 branches
BranchTrueFalseTotal
if ($osname eq 'darwin') { } 0 43 43
elsif ($osname =~ /^(MSWin32|msys|cygwin)$/) { } 0 43 43
62 {
63 0 push @suffix, '.dylib', '.bundle';
64 }
65 elsif($osname =~ /^(MSWin32|msys|cygwin)$/)
66 {
67 0 push @suffix, '.dll';
68 }
69 else
70 {
71 43 push @suffix, '.' . $self->{config}->{dlext};
72 }
73 43 ▶ wantarray ? @suffix : $suffix[0]; ## no critic (Community::Wantarray)
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 2 41 43
74 }
75  
76  
77 sub library_prefix
78 {
79 41 ▶ my $self = _self(shift);
Subroutine library_prefix: called CC=4 SCAR=17.9
Pod documented
80  
81 # this almost certainly requires refinement.
82 41 ▶ if($self->osname eq 'cygwin')
Branch: 3 branches
BranchTrueFalseTotal
if ($self->osname eq 'cygwin') { } 0 41 41
elsif ($self->osname eq 'msys') { } 0 41 41
elsif ($self->osname eq 'MSWin32') { } 0 41 41
83 {
84 0 return 'cyg';
85 }
86 elsif($self->osname eq 'msys')
87 {
88 0 return 'msys-';
89 }
90 elsif($self->osname eq 'MSWin32')
91 {
92 0 return '';
93 }
94 else
95 {
96 41 return 'lib';
97 }
98 }
99  
100  
101 sub cc
102 {
103 80 ▶ my $self = _self(shift);
Subroutine cc: called CC=1 SCAR=0.0
Pod documented
104 80 my $cc = $self->{config}->{cc};
105 80 [$self->shellwords($cc)];
106 }
107  
108  
109 sub cpp
110 {
111 0 ▶ my $self = _self(shift);
Subroutine cpp: not called CC=1 SCAR=6.9
Pod documented
112 0 my $cpp = $self->{config}->{cpprun};
113 0 [$self->shellwords($cpp)];
114 }
115  
116  
117 sub cxx
118 {
119 6 ▶ my $self = _self(shift);
Subroutine cxx: called CC=10 SCAR=33.7
Pod documented
120  
121 6 my @cc = @{ $self->cc };
122  
123 6 ▶ if($self->{config}->{ccname} eq 'gcc')
Branch: 2 branches
BranchTrueFalseTotal
if ($self->{'config'}{'ccname'} eq 'gcc') { } 6 0 6
elsif ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { } 0 0 0
124 {
125 6 ▶ if($cc[0] =~ /gcc$/)
Branch: 1 branch
BranchTrueFalseTotal
if ($cc[0] =~ /gcc$/) 0 6 6
126 {
127 0 my @maybe = @cc;
128 0 $maybe[0] =~ s/gcc$/g++/;
129 0 ▶ return \@maybe if $self->which($maybe[0]);
Branch: 1 branch
BranchTrueFalseTotal
if $self->which($maybe[0]) 0 0 0
130 }
131 6 ▶ if($cc[0] =~ /clang/)
Branch: 1 branch
BranchTrueFalseTotal
if ($cc[0] =~ /clang/) 0 6 6
132 {
133 0 my @maybe = @cc;
134 0 $maybe[0] =~ s/clang/clang++/;
135 0 ▶ return \@maybe if $self->which($maybe[0]);
Branch: 1 branch
BranchTrueFalseTotal
if $self->which($maybe[0]) 0 0 0
136 }
137  
138 # TODO: there are probably situations, eg solaris
139 # where we don't want to try c++ in the case of
140 # a ccname = gcc ?
141 6 my @maybe = qw( c++ g++ clang++ );
142  
143 6 foreach my $maybe (@maybe)
144 {
145 18 ▶ return [$maybe] if $self->which($maybe);
Branch: 1 branch
BranchTrueFalseTotal
if $self->which($maybe) 0 18 18
146 }
147 }
148 ▶ elsif($self->osname eq 'MSWin32' && $self->{config}->{ccname} eq 'cl')
Condition0%0/3
$self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl"
!ll&&!rl&&r
000
MC/DC0%0/2
$self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl"
$self->osname eq "MSWin32" $self->{"config"}{"ccname"} eq "cl"
Truth table0%0/3
A and B
A= $self->osname eq "MSWin32"B= $self->{"config"}{"ccname"} eq "cl"
ABresult
0X0
100
111
149 {
150 # TODO: see https://github.com/PerlFFI/FFI-Platypus/issues/203
151 #return \@cc;
152 }
153  
154 6 Carp::croak("unable to detect corresponding C++ compiler");
155 }
156  
157  
158 sub cxxld
159 {
160 2 ▶ my $self = _self(shift);
Subroutine cxxld: called CC=3 SCAR=16.3
Pod documented
161  
162 2 $DB::single = 1;
163  
164 # This is definitely not exhaustive or complete or even
165 # particularlly good. Patches welcome.
166  
167 2 ▶ if($self->osname eq 'darwin')
Branch: 1 branch
BranchTrueFalseTotal
if ($self->osname eq 'darwin') { } 0 2 2
168 {
169 0 my @cxx = @{ $self->cxx };
170 0 ▶ return [map { /^(cc|clang|gcc)$/ ? @cxx : $_ } @{ $self->ld }];
Branch: 1 branch
BranchTrueFalseTotal
/^(cc|clang|gcc)$/ ? : 0 0 0
171 }
172 else
173 {
174 2 return $self->cxx;
175 }
176 }
177  
178  
179 sub for
180 {
181 2 ▶ my $self = _self(shift);
Subroutine for: called CC=6 SCAR=22.9
Pod documented
182  
183 2 my @cc = @{ $self->cc };
184  
185 2 ▶ if($self->{config}->{ccname} eq 'gcc')
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'config'}{'ccname'} eq 'gcc') { } 2 0 2
186 {
187 2 ▶ if($cc[0] =~ /gcc$/)
Branch: 1 branch
BranchTrueFalseTotal
if ($cc[0] =~ /gcc$/) 0 2 2
188 {
189 0 my @maybe = @cc;
190 0 $maybe[0] =~ s/gcc$/gfortran/;
191 0 ▶ return \@maybe if $self->which($maybe[0]);
Branch: 1 branch
BranchTrueFalseTotal
if $self->which($maybe[0]) 0 0 0
192 }
193  
194 2 foreach my $maybe (qw( gfortran ))
195 {
196 2 ▶ return [$maybe] if $self->which($maybe);
Branch: 1 branch
BranchTrueFalseTotal
if $self->which($maybe) 0 2 2
197 }
198 }
199 else
200 {
201 0 Carp::croak("unable to detect correspnding Fortran Compiler");
202 }
203 }
204  
205  
206 sub ld
207 {
208 22 ▶ my($self) = @_;
Subroutine ld: called CC=1 SCAR=0.0
Pod documented
209 22 my $ld = $self->{config}->{ld};
210 22 [$self->shellwords($ld)];
211 }
212  
213  
214 sub shellwords
215 {
216 356 ▶ my $self = _self(shift);
Subroutine shellwords: called CC=4 SCAR=14.2
Pod documented
217  
218 356 my $win = !!($self->osname eq 'MSWin32');
219  
220 1061 grep { defined $_ } map {
221 356 ref $_
222 # if we have an array ref then it has already been shellworded
223 ? @$_
224 356 ▶ : do {
Branch: 1 branch
BranchTrueFalseTotal
ref $_ ? : 148 208 356
225 # remove leading whitespace, confuses some older versions of shellwords
226 208 ▶ my $str = /^\s*(.*)$/ && $1;
Condition33%1/3
/^\s*(.*)$/ && $1
!ll&&!rl&&r
00208
MC/DC0%0/2
/^\s*(.*)$/ && $1
/^\s*(.*)$/ $1
Truth table33%1/3
A && B
A= /^\s*(.*)$/B= $1
ABresult
0X0
100
111
227 # escape things on windows
228 208 ▶ $str =~ s,\\,\\\\,g if $win;
Branch: 1 branch
BranchTrueFalseTotal
if $win 0 208 208
229 208 Text::ParseWords::shellwords($str);
230 }
231 } @_;
232  
233 }
234  
235  
236 sub ccflags
237 {
238 72 ▶ my $self = _self(shift);
Subroutine ccflags: called CC=2 SCAR=6.9
Pod documented
239 72 my @ccflags;
240 72 push @ccflags, $self->shellwords($self->{config}->{cccdlflags});
241 72 push @ccflags, $self->shellwords($self->{config}->{ccflags});
242 72 push @ccflags, $self->shellwords($self->{config}->{optimize});
243 72 my $dist_include = eval { File::Spec->catdir(FFI::Platypus::ShareConfig::dist_dir('FFI-Platypus'), 'include') };
244 72 ▶ push @ccflags, "-I$dist_include" unless $@;
Branch: 1 branch
BranchTrueFalseTotal
unless $@ 36 36 72
245 72 \@ccflags;
246 }
247  
248  
249 sub ldflags
250 {
251 22 ▶ my $self = _self(shift);
Subroutine ldflags: called CC=7 SCAR=24.8
Pod documented
252 22 my @ldflags = $self->shellwords($self->{config}->{lddlflags});
253 22 ▶ if($self->osname eq 'cygwin')
Branch: 4 branches
BranchTrueFalseTotal
if ($self->osname eq 'cygwin') { } 0 22 22
elsif ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { } 0 22 22
elsif ($self->osname eq 'MSWin32') { } 0 22 22
elsif ($self->osname eq 'darwin') { } 0 22 22
254 {
255 16 ▶ no warnings 'qw';
Subroutine BEGIN: called CC=1 SCAR=0.0
256 # doesn't appear to be necessary, Perl has this in lddlflags already on cygwin
257 #push @ldflags, qw( -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base );
258 }
259 ▶ elsif($self->osname eq 'MSWin32' && $self->{config}->{ccname} eq 'cl')
Condition33%1/3
$self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl"
!ll&&!rl&&r
2200
MC/DC0%0/2
$self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl"
$self->osname eq "MSWin32" $self->{"config"}{"ccname"} eq "cl"
Truth table33%1/3
A and B
A= $self->osname eq "MSWin32"B= $self->{"config"}{"ccname"} eq "cl"
ABresult
0X0
100
111
260 {
261 0 push @ldflags, qw( -dll );
262 0 @ldflags = grep !/^-nodefaultlib$/, @ldflags;
263 }
264 elsif($self->osname eq 'MSWin32')
265 {
266 16 ▶ no warnings 'qw';
Subroutine BEGIN: called CC=1 SCAR=0.0
267 0 push @ldflags, qw( -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base );
268 }
269 elsif($self->osname eq 'darwin')
270 {
271 # we want to build a .dylib instead of a .bundle
272 0 ▶ @ldflags = map { $_ eq '-bundle' ? '-dynamiclib' : $_ } @ldflags;
Branch: 1 branch
BranchTrueFalseTotal
$_ eq '-bundle' ? : 0 0 0
273 }
274 22 \@ldflags;
275 }
276  
277  
278 sub cc_mm_works
279 {
280 7 ▶ my $self = _self(shift);
Subroutine cc_mm_works: called CC=7 SCAR=19.8
Pod documented
281 7 my $verbose = shift;
282 7 ▶ $verbose ||= 0;
Condition100%2/2
$verbose ||= 0
l!l
16
MC/DC100%1/1
$verbose ||= 0
$verbose
Truth table100%2/2
A
A= $verbose
Aresult
11
00
283  
284 7 ▶ unless(defined $self->{cc_mm_works})
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $self->{"cc_mm_works"}) 5 2 7
285 {
286 5 require FFI::Build::File::C;
287 5 my $c = FFI::Build::File::C->new(\"#include \"foo.h\"\n");
288 5 my $dir = FFI::Temp->newdir;
289 {
290 5 open my $fh, '>', "$dir/foo.h";
291 5 print $fh "\n";
292 5 close $fh;
293 }
294  
295 5 my @cmd = (
296 $self->cc,
297 $self->ccflags,
298 "-I$dir",
299 '-MM',
300 $c->path,
301 );
302  
303 my($out, $exit) = Capture::Tiny::capture_merged(sub {
304 5 ▶ $self->run(@cmd);
Subroutine __ANON__: called CC=1 SCAR=0.0
305 5 });
306  
307 5 ▶ if($verbose >= 2)
Branch: 2 branches
BranchTrueFalseTotal
if ($verbose >= 2) { } 0 5 5
elsif ($verbose >= 1) { } 1 4 5
308 {
309 0 print $out;
310 }
311 elsif($verbose >= 1)
312 {
313 1 print "CC (checkfor -MM)\n";
314 }
315  
316  
317 5 ▶ if(!$exit && $out =~ /foo\.h/)
Branch: 1 branch
BranchTrueFalseTotal
if (not $exit and $out =~ /foo\.h/) { } 5 0 5
Condition33%1/3
not $exit and $out =~ /foo\.h/
!ll&&!rl&&r
005
MC/DC0%0/2
not $exit and $out =~ /foo\.h/
not $exit $out =~ /foo\.h/
Truth table33%1/3
not(A) and B
A= not $exitB= $out =~ /foo\.h/
ABresult
0X0
100
111
318 {
319 5 $self->{cc_mm_works} = '-MM';
320 }
321 else
322 {
323 0 $self->{cc_mm_works} = 0;
324 }
325 }
326  
327 7 $self->{cc_mm_works};
328 }
329  
330  
331 sub flag_object_output
332 {
333 62 ▶ my $self = _self(shift);
Subroutine flag_object_output: called CC=3 SCAR=12.7
Pod documented
334 62 my $file = shift;
335 62 ▶ if($self->osname eq 'MSWin32' && $self->{config}->{ccname} eq 'cl')
Branch: 1 branch
BranchTrueFalseTotal
if ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { } 0 62 62
Condition33%1/3
$self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl"
!ll&&!rl&&r
6200
MC/DC0%0/2
$self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl"
$self->osname eq "MSWin32" $self->{"config"}{"ccname"} eq "cl"
Truth table33%1/3
A and B
A= $self->osname eq "MSWin32"B= $self->{"config"}{"ccname"} eq "cl"
ABresult
0X0
100
111
336 {
337 0 return ("-Fo$file");
338 }
339 else
340 {
341 62 return ('-o' => $file);
342 }
343 }
344  
345  
346 sub flag_library_output
347 {
348 20 ▶ my $self = _self(shift);
Subroutine flag_library_output: called CC=4 SCAR=17.2
Pod documented
349 20 my $file = shift;
350 20 ▶ if($self->osname eq 'MSWin32' && $self->{config}->{ccname} eq 'cl')
Branch: 2 branches
BranchTrueFalseTotal
if ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { } 0 20 20
elsif ($self->osname eq 'darwin') { } 0 20 20
Condition33%1/3
$self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl"
!ll&&!rl&&r
2000
MC/DC0%0/2
$self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl"
$self->osname eq "MSWin32" $self->{"config"}{"ccname"} eq "cl"
Truth table33%1/3
A and B
A= $self->osname eq "MSWin32"B= $self->{"config"}{"ccname"} eq "cl"
ABresult
0X0
100
111
351 {
352 0 return ("-OUT:$file");
353 }
354 elsif($self->osname eq 'darwin')
355 {
356 0 return ('-install_name' => "\@rpath/$file", -o => $file);
357 }
358 else
359 {
360 20 return ('-o' => $file);
361 }
362 }
363  
364  
365 sub flag_exe_output
366 {
367 7 ▶ my $self = _self(shift);
Subroutine flag_exe_output: called CC=3 SCAR=13.5
Pod documented
368 7 my $file = shift;
369 7 ▶ if($self->osname eq 'MSWin32' && $self->{config}->{ccname} eq 'cl')
Branch: 1 branch
BranchTrueFalseTotal
if ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { } 0 7 7
Condition33%1/3
$self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl"
!ll&&!rl&&r
700
MC/DC0%0/2
$self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl"
$self->osname eq "MSWin32" $self->{"config"}{"ccname"} eq "cl"
Truth table33%1/3
A and B
A= $self->osname eq "MSWin32"B= $self->{"config"}{"ccname"} eq "cl"
ABresult
0X0
100
111
370 {
371 0 my $file = File::Spec->rel2abs($file);
372 0 return ("/Fe:$file");
373 }
374 else
375 {
376 7 return ('-o' => $file);
377 }
378 }
379  
380  
381 sub flag_export
382 {
383 20 ▶ my $self = _self(shift);
Subroutine flag_export: called CC=3 SCAR=15.1
Pod documented
384 20 ▶ return () unless $self->osname eq 'MSWin32' && $self->{config}->{ccname} eq 'cl';
Branch: 1 branch
BranchTrueFalseTotal
unless $self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl" 20 0 20
Condition33%1/3
$self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl"
!ll&&!rl&&r
2000
MC/DC0%0/2
$self->osname eq "MSWin32" and $self->{"config"}{"ccname"} eq "cl"
$self->osname eq "MSWin32" $self->{"config"}{"ccname"} eq "cl"
Truth table33%1/3
A and B
A= $self->osname eq "MSWin32"B= $self->{"config"}{"ccname"} eq "cl"
ABresult
0X0
100
111
385 0 return map { "/EXPORT:$_" } @_;
386 }
387  
388  
389 sub which
390 {
391 20 ▶ my(undef, $command) = @_;
Subroutine which: called CC=2 SCAR=7.0
Pod documented
392 20 require IPC::Cmd;
393 20 ▶ my @command = ref $command ? @$command : ($command);
Branch: 1 branch
BranchTrueFalseTotal
ref $command ? : 0 20 20
394 20 IPC::Cmd::can_run($command[0]);
395 }
396  
397  
398 sub run
399 {
400 93 ▶ my $self = shift;
Subroutine run: called CC=2 SCAR=6.9
Pod documented
401 93 ▶ my @command = map { ref $_ ? @$_ : $_ } grep { defined $_ } @_;
Branch: 1 branch
BranchTrueFalseTotal
ref $_ ? : 284 384 668
402 93 print "+@command\n";
403 93 system @command;
404 93 $?;
405 }
406  
407  
408 8 ▶sub _c { join ',', @_ }
Subroutine _c: called CC=1 SCAR=0.0
409 10 ▶sub _l { join ' ', map { ref $_ ? @$_ : $_ } @_ }
Subroutine _l: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
ref $_ ? : 8 2 10
410  
411 sub diag
412 {
413 2 ▶ my $self = _self(shift);
Subroutine diag: called CC=4 SCAR=13.9
Pod documented
414 2 my @diag;
415  
416 2 push @diag, "osname : ". _c($self->osname);
417 2 push @diag, "cc : ". _l($self->cc);
418 2 ▶ push @diag, "cxx : ". (eval { _l($self->cxx) } || '---' );
Condition50%1/2
eval { do { _l($self->cxx) } } || '---'
l!l
02
MC/DC0%0/1
eval { do { _l($self->cxx) } } || '---'
eval { do { _l($self->cxx) } }
Truth table50%1/2
A
A= eval { do { _l($self->cxx) } }
Aresult
11
00
419 2 ▶ push @diag, "cxxld : ". (eval { _l($self->cxxld) } || '---' );
Condition50%1/2
eval { do { _l($self->cxxld) } } || '---'
l!l
02
MC/DC0%0/1
eval { do { _l($self->cxxld) } } || '---'
eval { do { _l($self->cxxld) } }
Truth table50%1/2
A
A= eval { do { _l($self->cxxld) } }
Aresult
11
00
420 2 ▶ push @diag, "for : ". (eval { _l($self->for) } || '---' );
Condition50%1/2
eval { do { _l($self->for) } } || '---'
l!l
02
MC/DC0%0/1
eval { do { _l($self->for) } } || '---'
eval { do { _l($self->for) } }
Truth table50%1/2
A
A= eval { do { _l($self->for) } }
Aresult
11
00
421 2 push @diag, "ld : ". _l($self->ld);
422 2 push @diag, "ccflags : ". _l($self->ccflags);
423 2 push @diag, "ldflags : ". _l($self->ldflags);
424 2 push @diag, "object suffix : ". _c($self->object_suffix);
425 2 push @diag, "library prefix : ". _c($self->library_prefix);
426 2 push @diag, "library suffix : ". _c($self->library_suffix);
427 2 push @diag, "cc mm works : ". $self->cc_mm_works;
428  
429 2 join "\n", @diag;
430 }
431  
432 16 1;
433  
434 __END__
« lib/FFI/Probe.pm ↑ Summary lib/FFI/Platypus/ShareConfig.pm »