Main Content

setBuildConfiguration

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

Set value of specified build configuration

Syntax

h.setBuildConfiguration(bldcfg_name, bldcfg_handle)

Description

h.setBuildConfiguration(bldcfg_name, bldcfg_handle) assigns a build configuration object to a build configuration in coder.make.ToolchainInfo.BuildConfigurations.

Tips

Before you can use this method, add a build configuration to BuildConfigurations using coder.make.ToolchainInfo.addBuildConfiguration with a bldcfg_name argument.

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, specified as a character vector or string scalar.

Data Types: char | string

Examples

h.getBuildConfigurations
ans = 

    'Faster Builds'
    'Faster Runs'
    'Debug'
bldcfg_handle = h.getBuildConfiguration('Debug')
bldcfg_handle = 

##############################################
# Build Configuration : Debug
# Description         : Default debug settings for compiling/linking code
##############################################

ARFLAGS            = /nologo $(ARDEBUG) 
CFLAGS             = $(cflags) $(CVARSFLAG) $(CFLAGS_ADDITIONAL) /c /Od $(CDEBUG)
CPPFLAGS           = $(cflags) $(CVARSFLAG) $(CPPFLAGS_ADDITIONAL) /c /Od $(CPPDEBUG)
DOWNLOAD_FLAGS     = 
EXECUTE_FLAGS      = 
LDFLAGS            = $(ldebug) $(conflags) $(LIBS_TOOLCHAIN) $(LDDEBUG) 
MEX_CFLAGS         = 
MEX_LDFLAGS        = 
MAKE_FLAGS         = -f $(MAKEFILE) 
SHAREDLIB_LDFLAGS  = $(ldebug) $(conflags) $(LIBS_TOOLCHAIN) -dll -def:$(DEF_FILE) $(LDDEBUG) 
h.addBuildConfiguration('Debug2','Variant debugging configuration')
h.setBuildConfiguration('Debug2',bldcfg_handle)
h.getBuildConfigurations
ans = 

    'Faster Builds'
    'Faster Runs'
    'Debug'
    'Debug2'

Version History

Introduced in R2013a