Build configuration
Description
Specify compiler optimization or debug settings for toolchain.
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:
Faster Builds
Faster Builds
Optimize for shorter build times.
Faster Runs
Optimize for faster-running executable.
Debug
Optimize for debugging.
Specify
Selecting
Specify
displays a table of tools with editable options. Use this table to customize settings for the current model. See Tool/Options.This interaction helps synchronize the Toolchain value and manually specified Build configuration values.
Modifying the Build configuration value can change the
Toolchain value. The Automatically locate an installed
toolchain
is the only value for Toolchain that is
affected by changing the Build configuration to
Specify
.
Changing the Build configuration to
Specify
, changes the Toolchain valueAutomatically locate an installed toolchain
(default) to the value of the toolchain that was located (for example,Microsoft Visual C++ 2012 v11.0 |(64-bit Windows)
).Changing the Build configuration from
Specify
to another value does not change the Toolchain value.
Tip
Click Show settings to display a table of tools with options for the current build configuration. See Tool/Options.
Customize the toolchain options for the Specify
build
configuration. These options only apply to the current project.
To extract macro definitions (including compiler optimization flags) from the generated
makefile for toolchain approach builds on Windows® or UNIX® systems, see the
description in Manage Build Process Files.model
.bat
Dependencies
Selecting Specify
displays a table of tools with editable
options. Use this table to customize settings for the current model. See Tool/Options.
Command-Line Information
Parameter:
BuildConfiguration |
Type: character vector |
Value:
'Faster Builds' | 'Faster Runs' |
'Debug' | 'Specify' |
Default:
'Faster Builds' |
Recommended Settings
Application | Setting |
---|---|
Debugging | Debug |
Traceability | No impact |
Efficiency | Faster Runs |
Safety precaution | No impact |