1.9 Toolchain environment variables

Except for ARMLMD_LICENSE_FILE, ARM Compiler does not require any other environment variables to be set. However, there are situations where you might want to set environment variables.

The environment variables used by the toolchain are described in the following table.
Where an environment variable is identified as GCC compatible, the GCC documentation provides full information about that environment variable. See Environment Variables Affecting GCC on the GCC web site.

Table 1-1 Environment variables used by the toolchain

Environment variable Setting
ARM_PRODUCT_PATH
Required only if you have a DS-5 toolkit license and you are running the ARM Compiler tools outside of the DS-5 environment.
Use this environment variable to specify the location of your product license mapping files. This is the only location that the tools search.
ARM_TOOL_VARIANT
Required only if you have a DS-5 toolkit license and you are running the ARM Compiler tools outside of the DS-5 environment.
Use this environment variable to identify the variant of the toolchain you are using. The tools attempt to use the value specified. This corresponds to the prefix of the license feature name in your license file up to the first "_" character, or an empty string if there is no prefix. See FAQ 16372, http://infocenter.arm.com/help/topic/com.arm.doc.faqs/ka16372.html for more information.
ARMCOMPILER6_ASMOPT
An optional environment variable to define additional assembler options that are to be used outside your regular makefile.
The options listed appear before any options specified for the armasm command in the makefile. Therefore, any options specified in the makefile might override the options listed in this environment variable.
ARMCOMPILER6_CLANGOPT
An optional environment variable to define additional armclang options that are to be used outside your regular makefile.
The options listed appear before any options specified for the armclang command in the makefile. Therefore, any options specified in the makefile might override the options listed in this environment variable.
ARMCOMPILER6_FROMELFOPT
An optional environment variable to define additional fromelf image converter options that are to be used outside your regular makefile.
The options listed appear before any options specified for the fromelf command in the makefile. Therefore, any options specified in the makefile might override the options listed in this environment variable.
ARMCOMPILER6_LINKOPT
An optional environment variable to define additional linker options that are to be used outside your regular makefile.
The options listed appear before any options specified for the armlink command in the makefile. Therefore, any options specified in the makefile might override the options listed in this environment variable.
ARMROOT
Your installation directory root, install_directory.
ARMLMD_LICENSE_FILE
This environment variable must be set, and specifies the location of your ARM license file. See the ARM® DS-5™ License Management Guide for information on this environment variable.

Note

On Windows, the length of ARMLMD_LICENSE_FILE must not exceed 260 characters.
C_INCLUDE_PATH
GCC compatible environment variable. Adds the specified directories to the list of places that are searched to find included C files.
COMPILER_PATH
GCC compatible environment variable. Adds the specified directories to the list of places that are searched to find subprograms.
CPATH
GCC compatible environment variable. Adds the specified directories to the list of places that are searched to find included files regardless of the source language.
CPLUS_INCLUDE_PATH
GCC compatible environment variable. Adds the specified directories to the list of places that are searched to find included C++ files.
TMP
Used on Windows platforms to specify the directory to be used for temporary files.
TMPDIR
Used on Red Hat Linux platforms to specify the directory to be used for temporary files.
Related concepts
1.5 ARM® Compiler toolchain licensing
Non-ConfidentialPDF file icon PDF versionARM DUI0741B
Copyright © 2014 ARM. All rights reserved.