Specify the toolchain to use when building an executable or library.
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
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 -setupcommand. 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.
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.
|Type: character vector|
|Safety precaution||No impact|