Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-148

Use -isystem for compilers that support it to indicate system include paths

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 0.3
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            gallafent William Gallafent
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes