Introduction
This Technical Note shows examples of how to build an IAR Embedded Workbench project from the command line, outside the IDE.
Discussion
The alternatives below are examples made for IAR Embedded Workbench for Arm, but they can easily be modified for other target devices.
Alternative 1 - Run IarBuild.exe from the command line
If you have a project file named test.ewp with a configuration named Debug, the following command can be used to build the project:
<installation dir>\common\bin\IarBuild.exe test.ewp Debug
Note: Run IarBuild.exe without parameters to get usage information.
To rebuild the project, use the following command (extended with an option to log all compiler messages):
<installation dir>\common\bin\IarBuild.exe test.ewp -build Debug -log all
The rebuild command above corresponds to:
<installation dir>\common\bin\IarBuil