Main Content

setBuildConfigurationOption

Class: coder.make.ToolchainInfo
Namespace: coder.make

Sets value of build tool options for build configuration

Syntax

h.setBuildConfigurationOption(buildconfignames, buildobjectname, options)

Description

h.setBuildConfigurationOption(buildconfignames, buildobjectname, options) sets option values for the named coder.make.BuildConfiguration objects in coder.make.ToolchainInfo.BuildConfigurations.

Input Arguments

expand all

A coder.make.ToolchainInfo object, specified using an object handle, such as h. To create h, enter h = coder.make.ToolchainInfo in a MATLAB® Command Window.

Build configuration name or 'all', specified as a character vector.

BuildTool object name, specified as a character vector.

Build configuration options, specified as a character vector.

Examples

To update a specific BuildConfiguration object or objects:

h = coder.make.ToolchainInfo
h.setBuildConfigurationOption('Faster Runs','C Compiler','-c -g')

To update all BuildConfiguration objects:

h = coder.make.ToolchainInfo
tc.setBuildConfigurationOption('all','C Compiler','-c -g')

Version History

Introduced in R2013a