Toolchain

Description

Specify the toolchain to use when building an executable or library.

Note

This parameter only appears when the model is configured to use a toolchain-based code generation target, as described in Choose Build Approach and Configure Build Process.

Category: Code Generation

Settings

Default: Automatically locate an installed toolchain

The list of available toolchains depends on the host computer platform, and can include custom toolchains that you added.

When Toolchain is set to Automatically locate an installed toolchain, the code generator:

  1. Searches your host computer for installed toolchains.

  2. Selects the most current toolchain.

  3. Displays the name of the selected toolchain immediately below the drop down menu.

Tip

Click the Configuration Parameters > Code Generation > Advanced parameters > Toolchain > Validate Toolchain button to verify that the registration information for the toolchain is valid. When the validation process is complete, a separate Validation report window opens and displays the results. The Validation report states whether the toolchain registration Passed or Failed and provides status for each step and build tool in the validation process. If the tool chain definition omits a build tool, validation skips the unspecified tool. To fix a failure (for example, the build tool definition omits a required build tool such as compiler or linker), edit the toolchain definition and repeat the registration process.

Command-Line Information

Parameter: Toolchain
Type: character vector
Value: 'Automatically locate an installed toolchain' | A valid toolchain name
Default: 'Automatically locate an installed toolchain'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics