Skip to main content

IAR Embedded Workbench for RX 5.20

iarbuild—the IAR Command Line Build Utility

In this section:

The IAR Command Line Build Utility (iarbuild) is located in the common\bin directory.

As input you use the project file, and the invocation syntax is:

iarbuild project.ewp [opmode] config[,config2,...]|"*" [options]

These are the possible parameters:

Parameter

Description

project.ewp

Your IAR Embedded Workbench project file.

opmode

One of these operating modes (see descriptions below the table):

-build

-clean

-compdb

-cspybat_cmds

-cstat_analyze

-cstat_clean

-cstat_cmds

-cstat_report

-jsondb

-make (default)

-ninja

config|"*"

config, the name of a configuration you want to build, either one of the predefined configurations Debug or Release or a name that you define yourself. For more information, see Projects and build configurations.

* (wild card character), the operation mode commands will process all configurations defined in the project. (The quote characters can be omitted under Microsoft Windows.)

options

One or more of these additional options (see descriptions below the table):

-fail_fast

-log type

-output filename

-output_type filetype

-parallel number

-tool type

-varfile filename

Table 4. iarbuild command line options 


If you run the application from a command shell without specifying a project file, you will get a sign-on message describing available parameters and their syntax.

If the build process was successful, the IAR Command Line Build Utility returns 0. Otherwise it returns a non-zero number and a diagnostic message.