Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
0.2
-
None
-
Mac OS 10.7, Xcode 4.5, clang 4.1
Description
Many compilers ([1], [2]) allow the specification of an include path to be treated in the same way as the system include paths (for example, suppressing warnings), using for example a flag -isystem (instead of the usual -I) to indicate that the following path should be treated in this special way. This is very useful when developing on a system which has certain paths which are not "standard" include paths for the system but which nonetheless contain software for which one is not interested in seeing warnings, or which should otherwise be treated as a system directory. A good example is the /opt/local/include directory, which on a Mac is the standard location for MacPorts [3] to place development header files for installed packages.
The attached patch adds a "systemincludePaths" property to the cpp module which is used by the compiler-specific implementations in this way. Some compilers [4] do not support this special type of include path, and so for those compilers the patch simply adds the paths to the normal "includePaths" property.