README.md
1# NAME
2
3Devel::CheckCompiler - Check the compiler's availability
4
5# SYNOPSIS
6
7 use Devel::CheckCompiler;
8
9 check_c99_or_exit();
10
11# DESCRIPTION
12
13Devel::CheckCompiler is checker for compiler's availability.
14
15# FUNCTIONS
16
17- `check_c99()`
18
19 Returns true if the current system has a working C99 compiler, false otherwise.
20
21- `check_c99_or_exit()`
22
23 Check the current system has a working C99 compiler, if it's not available, exit by 0.
24
25- `check_compile($src: Str, %options)`
26
27 Compile `$src` as C code. Return 1 if it's available, 0 otherwise.
28
29 Possible options are:
30
31 - executable :Bool = false
32
33 Check to see if generating executable is possible if this parameter is true.
34
35 - extra\_linker\_flags : Str | ArrayRef\[Str\]
36
37 Any additional flags you wish to pass to the linker. This option is used
38 only when `executable` option specified.
39
40# AUTHOR
41
42Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>
43
44# SEE ALSO
45
46[ExtUtils::CBuilder](https://metacpan.org/pod/ExtUtils::CBuilder)
47
48# LICENSE
49
50Copyright (C) Tokuhiro Matsuno
51
52This library is free software; you can redistribute it and/or modify
53it under the same terms as Perl itself.
54