Main Content

getBuildTool

获取 BuildTool 对象

语法

bldtl_handle = h.getBuildTool(bldtl_name)

说明

bldtl_handle = h.getBuildTool(bldtl_name) 返回具有指定名称的 BuildTool 对象。

输入参数

全部展开

使用对象句柄(如 h)指定的 coder.make.ToolchainInfo 对象。要创建 h,请在 MATLAB® 命令行窗口中输入 h = coder.make.ToolchainInfo

编译工具名称,指定为字符向量或字符串标量。

数据类型: char | string

输出参量

全部展开

coder.make.BuildTool 对象句柄。

示例

bldtl_handle = h.getBuildTool('C Compiler')
bldtl_handle = 

##############################################
# Build Tool: Intel C Compiler
##############################################

Language              : 'C'
OptionsRegistry       : {'C Compiler','CFLAGS'}
InputFileExtensions   : {'Source'}
OutputFileExtensions  : {'Object'}
DerivedFileExtensions : {'|>OBJ_EXT<|'}
SupportedOutputs      : {'*'}
CommandPattern        : '|>TOOL<| |>TOOL_OPTIONS<| |>OUTPUT_FLAG<||>OUTPUT<|'

# ---------
# Command
# ---------
CC = icl
CC_PATH  = 

# ------------
# Directives
# ------------
Debug              = -Zi
Include            = 
IncludeSearchPath  = -I
OutputFlag         = -Fo
PreprocessorDefine = -D

# -----------------
# File Extensions
# -----------------
Header = .h
Object = .obj
Source = .c

版本历史记录

在 R2013a 中推出