Class: coder.make.BuildTool
Package: coder.make
Set pattern of commands for build tools
h.setCommandPattern(commandpattern);
sets
the command pattern of a specific h
.setCommandPattern(commandpattern);coder.make.BuildTool
object
in coder.make.ToolchainInfo.BuildTools
.
The intel_tc.m
file from Adding a Custom Toolchain, uses the following lines to get and update one
of the BuildTool
objects, including the command
pattern:
% ------------------------------ % C Compiler % ------------------------------ tool = tc.getBuildTool('C Compiler'); tool.setName('Intel C Compiler'); tool.setCommand('icl'); tool.setPath(''); tool.setDirective('IncludeSearchPath','-I'); tool.setDirective('PreprocessorDefine','-D'); tool.setDirective('OutputFlag','-Fo'); tool.setDirective('Debug','-Zi'); tool.setFileExtension('Source','.c'); tool.setFileExtension('Header','.h'); tool.setFileExtension('Object','.obj'); tool.setCommandPattern('|>TOOL<| |>TOOL_OPTIONS<| |>OUTPUT_FLAG<||>OUTPUT<|');