fab.tools.linker#
This file contains the base class for any Linker.
Classes
|
This is the base class for any Linker. |
- class fab.tools.linker.Linker(name=None, exec_name=None, suite=None, compiler=None, output_flag='-o')#
This is the base class for any Linker. If a compiler is specified, its name, executable, and compile suite will be used for the linker (if not explicitly set in the constructor).
- Parameters:
name (
Optional
[str
]) – the name of the linker. (default:None
)exec_name (
Optional
[str
]) – the name of the executable. (default:None
)suite (
Optional
[str
]) – optional, the name of the suite. (default:None
)compiler (
Optional
[Compiler
]) – optional, a compiler instance (default:None
)output_flag (
str
) – flag to use to specify the output name. (default:'-o'
)
- check_available()#
- Return type:
- Returns:
whether the linker is available or not. We do this by requesting the linker version.
- link(input_files, output_file, add_libs=None)#
Executes the linker with the specified input files, creating output_file.