fab.tools.compiler_suite_tool#

This file contains the base class for all tools, i.e. compiler, preprocessor, linker, archiver, Psyclone, rsync, versioning tools.

Each tool belongs to one category (e.g. FORTRAN_COMPILER). This category is used when adding a tool to a ToolRepository or ToolBox. It provides basic support for running a binary, and keeping track if a tool is actually available.

Classes

CompilerSuiteTool(name, exec_name, suite, ...)

A tool that is part of a compiler suite (typically compiler and linker).

class fab.tools.compiler_suite_tool.CompilerSuiteTool(name, exec_name, suite, category, availability_option=None)#

A tool that is part of a compiler suite (typically compiler and linker).

Parameters:
  • name (str) – name of the tool.

  • exec_name (str | Path) – name of the executable to start.

  • suite (str) – name of the compiler suite.

  • category (Category) – the Category to which this tool belongs.

  • availability_option (str | List[str] | None) – a command line option for the tool to test if the tool is available on the current system. Defaults to –version. (default: None)

property suite: str#
Returns:

the compiler suite of this tool.