pyccel.compilers.default_compilers module#
Module responsible for the creation of the json files containing the default configuration for each available compiler. This module only needs to be imported once. Once the json files have been generated they can be used directly thus avoiding the need for a large number of imports
- pyccel.compilers.default_compilers.change_to_lib_flag(lib)[source]#
Convert a library to a library flag.
Take a library file and return the associated library flag by stripping the library suffix. If the file does not begin with the expected ‘lib’ prefix then it is returned unchanged.
- Parameters:
lib (str) – The library file.
- Returns:
The library flag.
- Return type:
str