The compilerOptions
definition
note
Work in progress. It is not yet clear where these definitions should be located.
Purpose
Specify compiler specific options that should be included in the build process when this object is active and enabled.
Syntax
{
"compilerOptions": {
"<toolchain-regexp>": {
"<tool-name-regexp": [ "<options>",... ],
...
}
},
...
}
The value of the compilerOptions
property is a map of toolchain specific objects, matched by a regular expression.
Default value
If missing, the current object will not contribute any compiler options to the build.
Description
Generally compiler options are defined at the top level and apply to all sources that enter the build.
In some cases it might be necessary to define compiler options for each component.
TODO
Example
{
"cdlComponent": {
"lists": {
...
"compilerOptions": {
".*gcc": {
"(c|cpp)-compiler": [ "-Wno-pointer-arith" ]
},
".*clang": {
"(c|cpp)-compiler": [ "-fapinotes" ]
}
},
...
}
}
}
See also
- ...
eCos reference
- ...