ExtUtils::HasCompiler - Check for the presence of a compiler
=head1 VERSION
version 0.025
=head1 SYNOPSIS
use ExtUtils::HasCompiler 'can_compile_extension';
if (can_compile_extension()) {
...
}
else {
...
}
=head1 DESCRIPTION
This module tries to check if the current system is capable of compiling, linking and loading an XS module.
B<Notice>: this is an early release, interface stability isn't guaranteed yet.
=head1 FUNCTIONS
=head2 can_compile_loadable_object(%opts)
This checks if the system can compile, link and load a perl loadable object. It may take the following options:
=over 4
=item * quiet
Do not output the executed compilation commands.
=item * config
An L<ExtUtils::Config|ExtUtils::Config> (compatible) object for configuration.
=item * skip_load
This causes can_compile_loadable_object to not try to load the generated object. This defaults to true on a cross-compiling perl.
=back
=head2 can_compile_static_library(%opts)
This checks if the system can compile and link a perl static library. It does not check it it can compile a new perl with it. It may take the following options:
=over 4
=item * quiet
Do not output the executed compilation commands.
=item * config
An L<ExtUtils::Config|ExtUtils::Config> (compatible) object for configuration.
=back
=head2 can_compile_extension(%opts)
This will call either C<can_compile_loadable_object>, or C<can_compile_static_library>, depending on which is the default on your configuration. In addition to the arguments listed above, it can take one more optional argument:
=over 4
=item * linktype
This will force the linktype to be either static or dynamic. Dynamic compilation on a static perl won't work, but static libraries can be viable on a dynamic perl.
=back
=head1 AUTHOR
Leon Timmermans <fawaka@gmail.com>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
Keyboard Shortcuts
Global
s
Focus search bar
?
Bring up this help dialog
GitHub
gp
Go to pull requests
gi
go to github issues (only if github is preferred repository)