Attributes
- compile_switch
compile_switch = '-c'
- exe_extension
exe_extension = ''
- executables
executables = { Const('version_cmd') : List([Const('f77'), Const('-v')]), Const('compiler_f77') : List([Const('f77')]), Const('compiler_f90') : List([Const('f90')]), Const('compiler_fix') : List([Const('f90'), Const('-fixed')]), Const('linker_so') : List([Const('f90'), Const('-shared')]), Const('linker_exe') : List([Const('f90')]), Const('archiver') : List([Const('ar'), Const('-cr')]), Const('ranlib') : Name('None') } - language_map
language_map = { Const('.f') : Const('f77'), Const('.for') : Const('f77'), Const('.F') : Const('f77'), Const('.ftn') : Const('f77'), Const('.f77') : Const('f77'), Const('.f90') : Const('f90'), Const('.F90') : Const('f90'), Const('.f95') : Const('f90') } - language_order
language_order = [ 'f90', 'f77' ]
- library_switch
library_switch = '-o '
- module_dir_switch
Switch to specify where module files are created and searched for USE statement. Normally it is a string and also here ending space matters. See above.
module_dir_switch = None
- module_include_switch
Switch to specify where module files are searched for USE statement.
module_include_switch = '-I'
- obj_extension
obj_extension = '.o'
- object_switch
object_switch = '-o '
- pic_flags
pic_flags = [ ]
- src_extensions
src_extensions = [ '.for', '.ftn', '.f77', '.f', '.f90', '.f95', '.F', '.F90' ]
- static_lib_extension
static_lib_extension = '.a'
- static_lib_format
static_lib_format = 'lib%s%s'
- version_pattern
version_pattern = None
Method summary
- __get_cmd(self, command, envvar = None, confvar = None)
- __get_flags(self, command, envvar = None, confvar = None)
- customize(self, dist = None)
- dump_properties(self)
- get_flags(self)
- get_flags_ar(self)
- get_flags_arch(self)
- get_flags_debug(self)
- get_flags_f77(self)
- get_flags_f90(self)
- get_flags_fix(self)
- get_flags_free(self)
- get_flags_linker_exe(self)
- get_flags_linker_so(self)
- get_flags_opt(self)
- get_flags_version(self)
- get_libraries(self)
- get_library_dirs(self)
- get_linker_exe(self)
- get_linker_so(self)
- get_version_cmd(self)
- library_dir_option(self, dir)
- library_option(self, lib)
- link(self, target_desc, objects, output_filename, output_dir = None, libraries = None, library_dirs = None, runtime_library_dirs = None, export_symbols = None, debug = 0, extra_preargs = None, extra_postargs = None, build_temp = None, target_lang = None)
- module_options(self, module_dirs, module_build_dir)
Methods
- __get_cmd(self, command, envvar = None, confvar = None)
- __get_flags(self, command, envvar = None, confvar = None)
- customize(self, dist = None)
Customize Fortran compiler.
This method gets Fortran compiler specific information from (i) class definition, (ii) environment, (iii) distutils config files, and (iv) command line.
This method should be always called after constructing a compiler instance. But not in __init__ because Distribution instance is needed for (iii) and (iv).
- dump_properties(self)
Print out the attributes of a compiler instance.
- get_flags(self)
List of flags common to all compiler types.
- get_flags_ar(self)
List of archiver flags.
- get_flags_arch(self)
List of architecture dependent compiler flags.
- get_flags_debug(self)
List of compiler flags to compile with debugging information.
- get_flags_f77(self)
List of Fortran 77 specific flags.
- get_flags_f90(self)
List of Fortran 90 specific flags.
- get_flags_fix(self)
List of Fortran 90 fixed format specific flags.
- get_flags_free(self)
List of Fortran 90 free format specific flags.
- get_flags_linker_exe(self)
List of linker flags to build an executable.
- get_flags_linker_so(self)
List of linker flags to build a shared library.
- get_flags_opt(self)
List of architecture independent compiler flags.
- get_flags_version(self)
List of compiler flags to print out version information.
- get_libraries(self)
List of compiler libraries.
- get_library_dirs(self)
List of compiler library directories.
- get_linker_exe(self)
Linker command to build shared libraries.
- get_linker_so(self)
Linker command to build shared libraries.
- get_version_cmd(self)
Compiler command to print out version information.
- library_dir_option(self, dir)
- library_option(self, lib)
- link(self, target_desc, objects, output_filename, output_dir = None, libraries = None, library_dirs = None, runtime_library_dirs = None, export_symbols = None, debug = 0, extra_preargs = None, extra_postargs = None, build_temp = None, target_lang = None)
- module_options(self, module_dirs, module_build_dir)
