Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-921

Toolchain support needs to pass extra flags to compiler to obtain predefined macros

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 1.3.83 (2.0.0-beta)
    • C/C++/Obj-C++ Support
    • None

    Description

      In GccToolChain::predefinedMacros, we have the following code:

              arguments << QLatin1String("-xc++")
                        << QLatin1String("-E")
                        << QLatin1String("-dM")
                        << QLatin1String("-");
      

      This allows getting the predefined macros, but it's incomplete. It needs to pass extra parameters coming from the project itself which may alter the predefined macros, including:

      • -std= (to support -std=c++0x)
      • -ansi
      • -mcpu, -march, -mtune
      • -O, -O2, -O3, etc.

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes