pyjac.pywrap.parallel_compiler module¶
Module for performing parallel compilation of source code files.
-
pyjac.pywrap.parallel_compiler.
parallel_compile
(self, sources, output_dir=None, macros=None, include_dirs=None, debug=False, extra_preargs=None, extra_postargs=None, depends=None)[source]¶ Compile source files in parallel.
Parameters: - sources (list of
str
) – List of source files - output_dir (str) – Optional; path to directory for object files
- macros (list of
tuple
) – Optional; list of macro definitions, like (name, value) or (name,) - include_dirs (list of
str
) – Optional; list of directories to add to default include file search path - debug (bool) – Optional; if
True
, instruct compiler to output debug signals - extra_preargs (list of
str
) – Optional; extra command-line arguments to prepend to compiler command - extra_postargs (list of
str
) – Optional; extra command-line arguments to append to compiler command - depends (list of
str
) – Optional; list of filenames that target depends on
Returns: objects – List of object files generated
Return type: list of
str
- sources (list of