1

I am using IAR V 8.11.

I am currently using the build configuration to build for different platforms. I want to be able to output the files that are generated from the build process into directories that are labelled with the build configuration name.

In order to do this, I need a variable name that has stores the build configuration, and use this variable name in the various project settings.

IAR (the IDE) provides access to custom argument variables via Tools->Configure Custom Argument Variables, but I was hoping there was a predefined variable already allocated for build configuration name.

So if I have several build configurations, Platform1, Platform2, it automatically updates the value of $VARIABLE_NAME$.

chumbaloo
  • 671
  • 6
  • 16
  • What IDE version are you using? What are you trying to accomplish? i.e. Where and how would you use $PLATFORM$? – user694733 Dec 21 '17 at 10:16
  • I have updated the question to better reflect what I wanted, and just improved it for clarity. I also included the version number. I have figured out the answer and posted it below. Thanks anyway! – chumbaloo Dec 21 '17 at 23:40

1 Answers1

1

The best way to do this is to use the $CONFIG_NAME$ variable that is already available.

The value assigned to $CONFIG_NAME$ is the name of the build configuration, which is exactly what I wanted.

chumbaloo
  • 671
  • 6
  • 16