Skip to content
Snippets Groups Projects
README.md 1.15 KiB
Newer Older
  • Learn to ignore specific revisions
  • tokuhirom's avatar
    tokuhirom committed
    # NAME
    
    Devel::CheckCompiler - Check the compiler's availability
    
    # SYNOPSIS
    
        use Devel::CheckCompiler;
    
        check_c99_or_exit();
    
    # DESCRIPTION
    
    Devel::CheckCompiler is checker for compiler's availability.
    
    # FUNCTIONS
    
    
    tokuhirom's avatar
    tokuhirom committed
    
        Returns true if the current system has a working C99 compiler, false otherwise.
    
    
    - `check_c99_or_exit()`
    
    tokuhirom's avatar
    tokuhirom committed
    
        Check the current system has a working C99 compiler, if it's not available, exit by 0.
    
    
    - `check_compile($src: Str, %options)`
    
    
        Compile `$src` as C code. Return 1 if it's available, 0 otherwise.
    
    
        Possible options are:
    
        - executable :Bool = false
    
            Check to see if generating executable is possible if this parameter is true.
    
    
        - extra\_linker\_flags : Str | ArrayRef\[Str\]
    
            Any additional flags you wish to pass to the linker. This option is used
            only when `executable` option specified.
    
    
    tokuhirom's avatar
    tokuhirom committed
    # AUTHOR
    
    
    Syohei YOSHIDA's avatar
    Syohei YOSHIDA committed
    Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>
    
    tokuhirom's avatar
    tokuhirom committed
    
    # SEE ALSO
    
    
    [ExtUtils::CBuilder](https://metacpan.org/pod/ExtUtils::CBuilder)
    
    tokuhirom's avatar
    tokuhirom committed
    
    # LICENSE
    
    Copyright (C) Tokuhiro Matsuno
    
    This library is free software; you can redistribute it and/or modify
    it under the same terms as Perl itself.