compile_c Subroutine

public subroutine compile_c(self, input, output, args, log_file, stat, table, dry_run)

Compile a C object

Type Bound

compiler_t

Arguments

Type IntentOptional Attributes Name
class(compiler_t), intent(in) :: self

Instance of the compiler object

character(len=*), intent(in) :: input

Source file input

character(len=*), intent(in) :: output

Output file of object

character(len=*), intent(in) :: args

Arguments for compiler

character(len=*), intent(in) :: log_file

Compiler output log file

integer, intent(out) :: stat

Status flag

type(compile_command_table_t), intent(inout), optional :: table

Optional compile_commands table

logical, intent(in), optional :: dry_run

Optional mocking


Source Code

subroutine compile_c(self, input, output, args, log_file, stat, table, dry_run)
    !> Instance of the compiler object
    class(compiler_t), intent(in) :: self
    !> Source file input
    character(len=*), intent(in) :: input
    !> Output file of object
    character(len=*), intent(in) :: output
    !> Arguments for compiler
    character(len=*), intent(in) :: args
    !> Compiler output log file
    character(len=*), intent(in) :: log_file
    !> Status flag
    integer, intent(out) :: stat
    !> Optional compile_commands table
    type(compile_command_table_t), optional, intent(inout) :: table
    !> Optional mocking
    logical, optional, intent(in) :: dry_run

    call compile_object(self, LANG_C, input, output, args, log_file, stat, table, dry_run)

end subroutine compile_c