compiler
A compiler definition. compiler elements may be placed either as children of a cc element or the project element. A compiler element with an id attribute may be referenced from compiler elements with refid or extends attributes.
Attribute Description Type
classname Sets the default compiler adapter. Use the "name" attribute when the compiler is a supported compiler. String
debug If set true, all targets will be built for debugging. boolean
description Sets a description of the current data type. String
exceptions Enables or disables exception support. boolean
extends Specifies that this element extends the element with id attribute with a matching value. The configuration will be constructed from the settings of this element, element referenced by extends, and the containing cc element. Reference
id Sets an id that can be used to reference this element. String
if Sets the property name for the 'if' condition. The configuration will be ignored unless the property is defined. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") will throw an exception when evaluated. String
inherit If inherit has the default value of true, defines, includes and other settings from the containing cc element will be inherited. boolean
libtool Set use of libtool. If set to true, the "libtool " will be prepended to the command line boolean
multithreaded Enables or disables generation of multithreaded code. Unless specified, multithreaded code generation is enabled. boolean
name Sets compiler type. Supported compilers
gcc (default) GCC C++ compiler
g++ GCC C++ compiler
c++ GCC C++ compiler
g77 GNU Fortran compiler
msvc Microsoft Visual C++
bcc Borland C++ Compiler
msrc Microsoft Resource Compiler
brc Borland Resource Compiler
df Compaq Visual Fortran Compiler
midl Microsoft MIDL Compiler
icl Intel C++ compiler for Windows (IA-32)
ecl Intel C++ compiler for Windows (IA-64)
icc Intel C++ compiler for Linux (IA-32)
ecc Intel C++ compiler for Linux (IA-64)
CC Sun ONE C++ compiler
aCC HP aC++ C++ Compiler
os390 OS390 C Compiler
os400 Icc Compiler
sunc89 Sun C89 C Compiler
xlC VisualAge C Compiler
uic Qt user interface compiler
moc Qt meta-object compiler
wcl OpenWatcom C/C++ compiler
wfl OpenWatcom FORTRAN compiler
CompilerEnum
newenvironment Do not propagate old environment when new environment variables are specified. boolean
optimize Sets optimization level. OptimizationEnum
rebuild If set true, all targets will be unconditionally rebuilt. boolean
refid Specifies that this element should behave as if the content of the element with the matching id attribute was inserted at this location. If specified, no other attributes or child content should be specified, other than "if", "unless" and "description". Reference
rtti Enables or disables run-time type information. boolean
unless Set the property name for the 'unless' condition. If named property is set, the configuration will be ignored. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") of the behavior will throw an exception when evaluated. String
warnings Enumerated attribute with the values "none", "severe", "default", "production", "diagnostic", and "aserror". WarningLevelEnum
compilerarg
Adds a compiler command-line arg.
compilerparam
Adds a compiler command-line arg.
defineset
Adds a defineset.
env
Add an environment variable to the launched process.
fileset
Adds a source file set. Files in these set will be processed by this configuration and will not participate in the auction.
includepath
Creates an include path.
precompile
Specifies precompilation prototype file and exclusions.
sysincludepath
Creates a system include path. Locations and timestamps of files located using the system include paths are not used in dependency analysis. Standard include locations should not be specified. The compiler adapters should recognized the settings from the appropriate environment variables or configuration files.