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

If set to true and the build step returns a non-zero exit-code, the build is aborted. Otherwise a non-zero exit-code is logged but the build continues.
 

build_target

build_target : str | None = 'all'

The target name(s) for building the project. If this is unset the build step will not be run. If this is set to the empty string, Make without a target will be called.
 

capture_output

capture_output : bool = False

Sets whether the shell output of the step should be captured. Note that only the output of the build step will be captured and not the output of possible clean steps.

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'

The target name(s) for cleaning the project. If this is unset the clean step will not be run. If this is set to the empty string, Make without a target will be called. Note: calling Make without a target for cleaning might not be what you want!
 

cwd

cwd : bauhaus.analysis.config.ProjectRelativePath | None = None

Directory where to call Make. Defaults to /Project/directory if left unspecified.
 

environment

environment : dict[str, str] = {}

Environment for extending the call of Make. These entries are added to the environment and existing ones will be overwritten.
 

makefile

makefile : bauhaus.analysis.config.ProjectRelativePath | None = None

The Makefile to use.
 

options

options : str | None = None

Additional command-line parameters for Make.
 

output_format

output_format : list[str] = ['generic']

Name of the format(s) describing the output pattern to capture from stdout/stderr.

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] = []

Name of the format(s) describing the output pattern to capture from stderr. This takes precedence over output_format if set.

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] = []

Name of the format(s) describing the output pattern to capture from stdout. This takes precedence over output_format if set.

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'

Make command-line tool to call.