Definition of archiver object
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=:), | public, | allocatable | :: | ar |
Path to archiver |
||
logical, | public | :: | echo | = | .true. |
Print all command |
|
logical, | public | :: | use_response_file | = | .false. |
Use response files to pass arguments |
|
logical, | public | :: | verbose | = | .true. |
Verbose output of command |
Create static archive
Create an archive
For Windows OS, use the local delete_file_win32
in stead of delete_file
.
This may be related to a bug in Mingw64-openmp and is expected to be resolved in the future,
see issue #707, #708 and #808.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(archiver_t), | intent(in) | :: | self |
Instance of the archiver object |
||
character(len=*), | intent(in) | :: | output |
Name of the archive to generate |
||
type(string_t), | intent(in) | :: | args(:) |
Object files to include into the archive |
||
character(len=*), | intent(in) | :: | log_file |
Compiler output log file |
||
integer, | intent(out) | :: | stat |
Status flag |
type :: archiver_t
!> Path to archiver
character(len=:), allocatable :: ar
!> Use response files to pass arguments
logical :: use_response_file = .false.
!> Print all command
logical :: echo = .true.
!> Verbose output of command
logical :: verbose = .true.
contains
!> Create static archive
procedure :: make_archive
end type archiver_t