ExtUtil...Compiler(3)
β¨ ExtUtil...Compiler(3) β¨
okay bestie, this is the User Contributed Perl Documentation page titled ExtUtil...Compiler(3) β and yes, the module it's actually about is ExtUtils::HasCompiler. It's giving "can your system actually build this?" energy, and we're here for it. π
πΈ NAME πΈ
ExtUtils::HasCompiler β check for the presence of a compiler.
π VERSION π
version 0.025
π¦ SYNOPSIS π¦
use ExtUtils::HasCompiler 'can_compile_extension';
if (can_compile_extension()) {
...
}
else {
...
}
π DESCRIPTION π
This module tries to check if the current system is capable of compiling, linking and loading an XS module. Literally the vibe check for your compiler setup. π₯
π¨ Notice: this is an early release, interface stability isn't guaranteed yet.
π FUNCTIONS π
π 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:
quietβ do not output the executed compilation commands.configβ anExtUtils::Config(compatible) object for configuration.skip_loadβ this causescan_compile_loadable_objectto not try to load the generated object. This defaults totrueon a cross-compiling perl.
π§ 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:
quietβ do not output the executed compilation commands.configβ anExtUtils::Config(compatible) object for configuration.
π can_compile_extension(%opts) π
This will call either can_compile_loadable_object, or 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:
linktypeβ this will force the linktype to be eitherstaticordynamic. Dynamic compilation on a static perl won't work, but static libraries can be viable on a dynamic perl.
π AUTHOR π
Leon Timmermans <fawaka@gmail.com>
β 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.
xoxo, bestie π this page is brought to you by perl v5.42.0, dated 2024-05-13. slay. π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-ExtUtils-HasCompiler 0.25.0-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms