target.Directive - Describe command-line flag for tool - MATLAB (original) (raw)

Main Content

Namespace: target

Describe command-line flag for tool

Since R2023a

Description

Use a target.Directive object to describe a command-line flag for a build tool.

To create a target.Directive object, use thesetDirective method of the target.BuildTool object.

Properties

expand all

Name of directive.

Attributes:

GetAccess public
SetAccess public

Value of directive.

Attributes:

GetAccess public
SetAccess public

Examples

collapse all

This code snippet shows how you can specify a C compiler that uses command files.

cCompiler = target.create('BuildTool', 'C Compiler', 'gcc', ... 'Name', 'MinGW GCC C Compiler'); cCompiler.setDirective('CommandFile', '@');

Version History

Introduced in R2023a