Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36575

qmake incorrectly uses CFLAGS (instead of CXXFLAGS) when building Objective-C++ PCH

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.0 RC
    • 5.2.0
    • Build tools: qmake
    • None
    • 9ff1310af51814e521572fa3de4e086907633a90

    Description

      When qmake generates a Makefile for an Objective-C++ precompiled header or source file, currently it appends CFLAGS to the command line.

      This behavior seems incorrect, since Objective-C++ files are essentially C++, not C.

      This is a problem, since certain C flags are incompatible with C++ mode (e.g., specifying the C standard via -std=c99).

      Patch attached.

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              smokris Steve Mokris
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes