Custom Toolchain Registration

Register and use third-party software build toolchains to create executables and libraries

Classes

coder.make.BuildConfiguration Represent build configuration
coder.make.BuildItem Represent build item
coder.make.BuildTool Represent build tool
coder.make.ToolchainInfo Represent custom toolchain

Examples and How To

Adding a Custom Toolchain

This example shows how to register and use a toolchain to compile an executable.

Create and Edit Toolchain Definition File

Create and edit a toolchain definition file for a new custom toolchain.

Create and Validate ToolchainInfo Object

Create and validate a ToolchainInfo object from the toolchain definition file.

Register the Custom Toolchain

Register custom toolchain before you use it.

Use the Custom Toolchain

Build an executable or library with the custom toolchain.

Toolchain Definition File with Commentary

Create a toolchain definition file.

Configure Build Settings

Configure build configuration parameters at the command line or in the MATLAB® Coder™ app.

Concepts

Custom Toolchain Registration

Register third-party software build tools for creating executables and libraries.

About coder.make.ToolchainInfo

coder.make.ToolchainInfo represents a custom toolchain.

Troubleshooting

Troubleshooting Custom Toolchain Validation

Troubleshoot validation errors.

Prevent Circular Data Dependencies with One-Pass or Single-Pass Linkers

Use StartLibraryGroup and EndLibraryGroup linker directives.

Was this topic helpful?