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 Configure Toolchain or Template Makefile Build Process.
Category: Code Generation
Settings
Default:
Automatically locate an installed toolchain
The list of available toolchains depends on your development computer platform, and can include custom toolchains that you added.
When Toolchain is set to Automatically locate an
installed toolchain
, the code generator:
Searches your development computer for installed toolchains.
Selects the compiler that you specified last by using the
mex -setup
command. The build process uses the compiler to compile generated C and C++ code.Displays the name of the selected toolchain immediately below the Toolchain field.
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
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |