6.1.2.12. MakeIntegration¶
Use Make for analysis compilation
This rule calls Make with the specified build and clean targets.
Use this rule to call make with appropriate parameters to generate the desired IR file (most likely /Project/ir).
Options¶
The following places define options that affect this rule: BuildSystemIntegration, Project-GlobalOptions
abort_on_error¶
abort_on_error : bool = True
build_target¶
build_target : str | None = 'all'
capture_output¶
capture_output : bool = False
The output will be parsed according to the format configured with the options output_format, stdout_format, stderr_format.
clean_target¶
clean_target : str | None = 'clean'
cwd¶
cwd : bauhaus.analysis.config.ProjectRelativePath | None = None
environment¶
environment
Type: dict[str, str]
Default:
{ 'COMPILE_ONLYIR': '1' }
Environment for extending the call of Make. These entries are added to the environment and existing ones will be overwritten.
By default, COMPILE_ONLYIR=1 results in the injected
irWRAPPERS only creating IR files (with their original filenames) but
no native object files. If your build also requires the native objects and
executables in addition to the IR files, remove COMPILE_ONLYIR from
the environment to get the native files with original names and the IR files with
.ir appended.
makefile¶
makefile : bauhaus.analysis.config.ProjectRelativePath | None = None
options¶
options : str | None = None
output_format¶
output_format : list[str] = ['generic']
The format names available here correspond to the provider
options in /Analysis/AnalysisControl/ExternalAnalysisFormats.
This option only has an effect if capture_output is true.
stderr_format¶
stderr_format : list[str] = []
The format names available here correspond to the provider
options in /Analysis/AnalysisControl/ExternalAnalysisFormats.
This option only has an effect if capture_output is true.
stdout_format¶
stdout_format : list[str] = []
The format names available here correspond to the provider
options in /Analysis/AnalysisControl/ExternalAnalysisFormats.
This option only has an effect if capture_output is true.
toolname¶
toolname : str = 'make'
variables¶
variables
Type: dict[str, str]
Default:
{ 'AR': 'irAR', 'CC': 'irCC', 'CXX': 'irCXX', 'LD': 'irCXX' }
Set of Make variables to override when invoking the build. Typically you want to
replace variables like CC, CXX, LD,
AR and perhaps others with the Axivion compiler toolchain tools.
If variables listed here are also in the options, then
the ones in options take precedence.
We provide the following tool wrappers (irWRAPPERS):
| Wrapper name | Make variable | Synopsis of wrapped tool |
|---|---|---|
| irAR | AR | Archiver |
| irCC | CC/LD | C Compiler |
| irCP | CP | File copy tool |
| irCXX | CXX/LD | C++ compiler |
| irLD | LD | Linker |
| irLIBTOOL | GNU Portable Library Tool | |
| irLN | LN | File symlink tool |
| irLTORANLIB | gcc-ranlib tool | |
| irMT | Microsoft Manifest Tool | |
| irMV | MV | File move tool |
| irNVCC | NVCC | Nvidia CUDA compiler |
| irOBJCOPY | OBJCOPY | Object copy tool |
| irOBJDUMP | OBJDUMP | Object dump tool |
| irRANLIB | RANLIB | ranlib tool |
| irSIZE | SIZE | Size tool |
| irSTRIP | STRIP | Strip tool |
COMPILE_ONLY or
COMPILE_ONLYIR are set.
For details, please see explanation of irWRAPPERS in the
documentation.