Main Content

getPath

Class: coder.make.BuildTool
Package: coder.make

Get path and macro of build tool in Path

Syntax

btpath = h.getPath
btmacro = h.getPath('macro')

Description

btpath = h.getPath returns the path of the build tool from coder.make.BuildTool.Paths.

btmacro = h.getPath('macro') returns the macro for the path of the build tool from coder.make.BuildTool.Paths

Tips

If the system command environment specifies a path variable for the build tool, the value of the path does not need to be specified by the BuildTool object.

Input Arguments

expand all

Object handle for a coder.make.BuildTool object, specified as a variable.

Example: tool

Output Arguments

expand all

The path of BuildTool object, returned as a scalar.

Data Types: char

Macro for path of BuildTool object, returned as a scalar.

Data Types: char

Examples

Enter the following lines:

tc = coder.make.ToolchainInfo;
tool = tc.getBuildTool('C Compiler');
tool.getPath
ans  = 

     ''
tool.getPath('macro')
ans  = 

CC_PATH
tool.setPath('/gcc')
tool.Path
ans = 

	Macro  : CC_PATH
	Value : /gcc