Skip to main content

IAR Embedded Workbench for Arm 10.10.x

iarbuild - IARコマンドラインビルドユーティリティ

このセクションの内容:

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

The invocation syntax is one of:

iarbuild project.ewp [opmode] {config[,config2,...]|"*"} [options]
iarbuild -E utility options

The first alternative builds your project. The second alternative performs an operation on your project using an external utility.

Using iarbuild

以下のパラメータが使用できます。

パラメータ

説明

project.ewp

IAR Embedded Workbenchプロジェクトファイル。

opmode

以下のいずれかの動作モード (表の下の説明を参照):

-build

-clean

-compdb

-cspybat_cmds

-cstat_checks

-cstat_clean

-cstat_cmds

-cstat_config

-cstat_report

-jsondb

-launch_json

-make (デフォルト)

-ninja

utility

Operates by invoking an external utility (see descriptions below the table). Choose between:

clangd_compile_commands

cstat_analyze

config|"*"

config、ビルドする構成の名前(事前定義された構成のDebugまたはReleaseのいずれか、または自分で定義した名前)。詳細については、プロジェクトとビルド構成を参照してください。

*(ワイルドカード文字)、操作モードコマンドはプロジェクトで定義されているすべての構成を実行します。(引用符はMicrosoft Windowsでは省略できます。)

options

以下の追加オプションの中から1つ以上を指定可能 (表の下の説明を参照):

-cstat_config_file filename

-fail_fast

-log type

-output filename

-output_type filetype

-parallel number

-tool type

-varfile filename

表4 iarbuildコマンドラインオプション 


プロジェクトファイルを指定せずにコマンドシェルからアプリケーションを実行すると、使用可能なパラメータとその構文を説明するサインオンメッセージが表示されます。

ビルドプロセスが成功した場合、 IARコマンドラインビルドユーティリティは0を返します。そうでない場合は、ゼロ以外の数字と診断メッセージが返されます。

Using iarbuild to run C-STAT

For general information on the C-STAT Static Analysis tool and how to use it, see C-STAT® for static analysis.

IARコマンドラインビルドユーティリティ (iarbuild)はcommon\binディレクトリにあります。

入力としてプロジェクトファイルを使用し、以下の構文で呼び出します。

iarbuild -E cstat_analyze options

These are the possible parameters:

Parameter

Description

options

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

--build_dir directory

--compile_commands filename

--configuration|-c configname

--cstat_config_file filename

--generate_report project

--output_dir|-o filename

--sarif

表5 iarbuild command line C-STAT options