Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.2.0
-
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
- replaces
-
QTBUG-39057 Precompiled header in Mac cannot have C++11 features
- Closed
For Gerrit Dashboard: QTBUG-36575 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
77117,13 | Distinguish between Objective-C and Objective-C++ sources | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |
122199,1 | Use CXXFLAGS when generating Makefile commands for Objective-C++. | 5.5 | qt/qtbase | Status: ABANDONED | -2 | 0 |